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
| # Install bash completion | |
| $ brew install bash-completion | |
| # Install Homebrew's own completion script: | |
| $ ln -s "/usr/local/Library/Contributions/brew_bash_completion.sh" "/usr/local/etc/bash_completion.d" |
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
| gem list | cut -d" " -f1 | xargs gem uninstall -aIx |
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 ipfw pipe 1 config bw 300kbit/s | |
| sudo ipfw add pipe 1 dst-ip 0.0.0.0/0 | |
| sudo ipfw flush |
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
| find . -name '*.DS_Store' -type f -delete |
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
| # GRAILS | |
| GRAILS_CELLAR=/usr/local/Cellar/grails | |
| GRAILS_BIN=/usr/local/bin/grails | |
| GRAILS_START=/usr/local/bin/startGrails | |
| GRAILS_DEBUG=/usr/local/bin/grails-debug | |
| GRAILS_CURRENT=$GRAILS_CELLAR/current | |
| usegrails() { | |
| gversion=$1 | |
| if [ -d $GRAILS_CELLAR/$gversion ]; then |
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
| "/path/to/stuff"(controller:"controller", action: "action"){ | |
| param={ | |
| def rtn = "get" | |
| switch(request.method) { | |
| case "GET": | |
| rtn = "get" | |
| break | |
| case "PUT": | |
| rtn = "update" | |
| break |
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
| Copy the Java comment config file to the Groovy directory | |
| cp ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Java/Comments.tmPreferences ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Groovy/ | |
| Edit ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Groovy/Comments.tmPreferences | |
| Change line 8 | |
| <string>source.java</string> |
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
| require 'io/console' | |
| STDIN.noecho(&:gets) |
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
| Domain.metaClass.event = { arg1, arg2, arg3 ->} |
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\ Mavericks.app/Contents/Resources/createinstallmedia --volume Mac\ OS\ X\ Install\ ESD/ --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeractio |
OlderNewer