This file contains hidden or 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
| [ | |
| { "phrase": "Howdy y'all", "dialect": "southern" }, | |
| { "phrase": "Ello govna", "dialect": "british" }, | |
| { "phrase": "Sup", "dialect": "dude" } | |
| ] |
This file contains hidden or 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
| /** | |
| * ASink | |
| * Wraps a function around a generator to pass in its itorator | |
| * This allow code within the generator to call its own next() | |
| **/ | |
| module.exports = (wrap) => { | |
| // Wrap allow us to pass in the object reference that holds | |
| // the generator itorator | |
| var gen = wrap(this) | |
This file contains hidden or 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
| sudo apt-get remove php5* | |
| git clone https://github.com/kasparsd/php-7-debian.git | |
| cd php-7-debian | |
| ./build.sh | |
| ./install.sh | |
| sudo rm -Rf php-7-debian/ | |
| cd /usr/local/php7/bin |
This file contains hidden or 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
| cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> ~/.ssh/authorized_keys' |
This file contains hidden or 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
| #!/bin/bash | |
| BIND=127.0.0.1:9000 | |
| USER=www-data | |
| PHP_FCGI_CHILDREN=1 | |
| PHP_FCGI_MAX_REQUESTS=1000 | |
| PHP_CGI=/usr/bin/php-cgi | |
| PHP_CGI_NAME=`basename $PHP_CGI` | |
| PHP_CGI_ARGS="- USER=$USER PATH=/usr/bin PHP_FCGI_CHILDREN=$PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS=$PHP_FCGI_MAX_REQUESTS $PHP_CGI -b $BIND" | |
| RETVAL=0 |