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
| composer self-update | |
| ## ---------- or ------------ ## | |
| rm /usr/local/bin/composer | |
| curl -s https://getcomposer.org/installer | php | |
| sudo mv composer.phar /usr/local/bin/composer | |
| composer self-update |
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
| /SERVER ADD -auto -network worknet irc.mycompany.com 6667 password |
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
| juju bootstrap --constraints "cpu-power=0" | |
| juju deploy jenkins | |
| juju deploy -n 1 jenkins-slave | |
| juju add-relation jenkins jenkins-slave | |
| # delete it | |
| juju destroy-environment |
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
| curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh |
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
| <?php | |
| /** | |
| * Singularize a string. | |
| * Converts a word to english singular form. | |
| * | |
| * Usage example: | |
| * {singularize "people"} # person | |
| */ | |
| function singularize ($params) | |
| { |
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
| <?php | |
| /** | |
| * Simple Ngram word extraction from phrases | |
| * For large dictionaries it's advised this is ran from terminal | |
| * php ngram.php | |
| * | |
| * @author Peter McConnell | |
| **/ |
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
| import cv2 | |
| # Camera 0 is the integrated web cam on my netbook | |
| camera_ports = range(0, 2) | |
| def get_image(): | |
| retval, im = camera.read() | |
| return im | |
| for c in camera_ports: |
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
| 1. Stop the MySQL Server. | |
| `sudo /etc/init.d/mysql stop` | |
| 2. Start the mysqld configuration. | |
| `sudo mysqld --skip-grant-tables &` | |
| 3. Login to MySQL as root. | |
| `mysql -u root mysql` | |
| 4. Replace YOURNEWPASSWORD with your new password! |
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
| packages: | |
| yum: | |
| aspell: [] | |
| aspell-devel: [] | |
| aspell-en: [] | |
| php55-pspell.x86_64: [] |
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
| files: | |
| "/etc/httpd/conf.d/allow_override.conf": | |
| mode: "000644" | |
| owner: ec2-user | |
| group: ec2-user | |
| encoding: plain | |
| content: | | |
| <Directory /var/www/html/myproject/> | |
| AllowOverride AuthConfig | |
| </Directory> |