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 | |
| # php switch for homebrew | |
| # $ brew tap josegonzalez/php && brew install php53 --with-mysql && brew install php54 --with-mysql && brew install php55 --with-mysql | |
| # Might as well ask for password up-front, right? | |
| sudo -v | |
| if [[ $1 == 5.5 ]]; then | |
| ln -sf `brew list php55 | grep libphp` /usr/local/lib/libphp5.so |
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
| rsync -avr --exclude '*.ext.php' --include '*/' --include 'pt_PT.*' --exclude '*' --prune-empty-dirs ~/source ~/dest |
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
| git log --author=Eusebio --since='2014-07-22' --until='2014-07-26' --pretty=format:"%ad%x09%s" --abbrev-commit --no-merges |
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 | |
| $mail_server = "mail.example.com" ; | |
| $mail_username = "[email protected]" ; | |
| $mail_password = "a very long and unbreakable password" ; | |
| $mail_port = 143 ; | |
| $mail_folder = 'INBOX'; | |
| echo "<h1>".$mail_username." on ".$mail_server."</h1>\n\n" ; |
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 -ex | |
| /bin/dd if=/dev/zero of=/var/swapfile.1 bs=1M count=4096 | |
| /sbin/mkswap /var/swapfile.1 | |
| chmod 600 /var/swapfile.1 | |
| /sbin/swapon /var/swapfile.1 | |
| echo "/var/swapfile.1 swap swap defaults 0 0" >> /etc/fstab |
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 "/Applications/Install OS X Yosemite.app/Contents/Resources/createinstallmedia" --volume /Volumes/Untitled --applicationpath "/Applications/Install OS X Yosemite.app" --nointeraction |
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
| docker rmi $(docker images | grep '^<none>' | awk '{print $3}') |
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
| sed -i -e '/\[dockerhost\]\:49/d' ~/.ssh/known_hosts |
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 | |
| tail -f /var/log/httpd/error_log | sed "s/\\\n/\\n/g" |
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
| gunzip < DUMP_FILE.sql.gz | mysql --user=DB_USER --password DB_NAME |
OlderNewer