This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This script provide a way to rebuild the profiles.ini file | |
* in your ~/.mozilla/firefox/ directory in case, like me, the | |
* update to Firefox 56 on Ubuntu wiped your profiles.ini out | |
* and placed a fresh "default" profile instead, but luckily | |
* left all the profiles directories in place. | |
* To use it, you need php-cli and you need to place this file | |
* inside the ~/.mozilla/firefox/ directory. | |
* Execute it with "php firefox-profiles-ini-rebuild.php" and |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This script converts files in a Gallery2 database and directories structure | |
* to avoid spaces, so that they can be imported in Piwigo (which doesn't tolerate spaces) | |
* It gives a substantial amount of output, so we recommend executing with | |
* php g2-convert.php > output.txt | |
* to be able to analyse it afterwards. | |
* This script has been used successfully on a database of 249K pictures | |
* @author @ywarnier @BeezNest | |
* @date 2017 |
Swoole is an event-based & concurrent framework for internet applications, written in C, for PHP.
The network layer in Swoole is event-based and takes full advantage of the underlaying epoll/kqueue implementation, making it really easy to serve thousands of connections.