| Models | Examples |
|---|---|
| Display ads | Yahoo! |
| Search ads |
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
| Any modern, innovative and worth learning framework or programming | |
| language implements a subset of Smalltalk's features but lacks its | |
| vision and design principles. |
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
| #!/usr/bin/env bash | |
| mail="[email protected]" | |
| maxload="9" | |
| hostname=`hostname` | |
| load=`w | head -n1 | awk '{print $10}' | cut -d"," -f1` | |
| if [ $load -gt $maxload ] | |
| then | |
| echo "$hostname - High load found" | |
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
| #!/usr/bin/env bash | |
| shopt -s globstar | |
| for file in **/* | |
| do | |
| slash=${file//[^\/]} | |
| case "${#slash}" in | |
| 0) echo "|-- ${file}";; | |
| 1) echo "| |-- ${file}";; |
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
| #!/usr/bin/env bash -e | |
| script_path=$( cd $(dirname $0) ; pwd -P ) |
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
| https://secure.phabricator.com/D7689 | |
| +---------------------------------------------------------------+ | |
| | * * * PUSH REJECTED BY EVIL DRAGON BUREAUCRATS * * * | | |
| +---------------------------------------------------------------+ | |
| \ | |
| \ ^ /^ | |
| \ / \ // \ | |
| \ |\___/| / \// .\ | |
| \ /V V \__ / // | \ \ *----* |
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 -r --delete -h --progress --stats /Users/arturo/Documents /Volumes/Arthur/ |
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
| http://stackoverflow.com/q/11289551/462015 | |
| # Delete hundred of thousands of files: | |
| $ rm -f /home/apps/ishows/images/ | |
| /bin/rm: cannot execute [Argument list too long] | |
| $ find /home/apps/ishows/images/ -type f | xargs /bin/rm | |
| # Delete files that was last accessed n*24 hours ago, e.g. +5 days |
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
| for f in *.css.sass; do | |
| mv "$f" "$(basename "$f" .css.sass).sass" | |
| done |
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
| #!/usr/bin/env bash | |
| deploy_to_production() { | |
| read -p "Are you sure? " -r | |
| if [[ $REPLY =~ ^(yes|y|Y)$ ]]; then | |
| git push production master && heroku run rake db:migrate -a app-production | |
| fi | |
| } | |
| deploy_to_staging() { |