mbuffet / Transmission BT
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність
| 1 | ### Commandes ### |
| 2 | sudo service transmission-daemon start |
| 3 | sudo service transmission-daemon restart |
| 4 | sudo service transmission-daemon stop |
| 5 | sudo service transmission-daemon status |
| 6 | |
| 7 | ### Config ### |
| 8 | sudo nano /var/lib/transmission-daemon/info/settings.json |
| 9 |
mbuffet / PHP - Fiber
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність
Asynchronous Programming
| 1 | The Basic Anatomy of a Fiber |
| 2 | The beauty of PHP Fibers is in their simplicity. Here’s how to create a fiber and get it up and running: |
| 3 | |
| 4 | $fiber = new Fiber(function() { |
| 5 | echo "Fiber started…\n"; |
| 6 | Fiber::suspend(); // Pause the fiber |
| 7 | echo "Fiber resumed…\n"; |
| 8 | }); |
| 9 | echo "Fiber starting…\n"; |
| 10 | $fiber->start(); // Start the fiber |
mbuffet / PHP - Array
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність
Fonctionnalités concertant les tableaux
| 1 | array_map for associative array |
| 2 | https://medium.com/@valerio_27709/php-array-map-for-associative-array-fast-tips-98f98b817a03 |
| 3 | |
| 4 | ex: |
| 5 | $emails = array_map(function($user) { |
| 6 | return $user['email']; |
| 7 | }, $users); |
| 8 | |
| 9 | // Result: ['john.doe@example.com', 'jane.smith@example.com', 'bob.johnson@example.com'] |
Новіше
Пізніше