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
| // ==UserScript== | |
| // @name reload | |
| // @namespace reload | |
| // @description reload pages | |
| // @include http://* | |
| // ==/UserScript== | |
| setTimeout("location.href=window.location.href", 5000); | |
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
| POST http://rubyurl.com/api/links | |
| <link> | |
| <website_url>http://github.com/robbyrussell</website_url> | |
| </link> |
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
| # show all | |
| defaults write com.apple.finder AppleShowAllFiles -bool true | |
| # hidden . | |
| defaults write com.apple.finder AppleShowAllFiles -bool false |
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
| msg=$(echo $@ | sed 's/+/%2B/g;s/ /+/g') | |
| curl --silent --user "username:password" --data-ascii \ | |
| "status=$msg" "http://twitter.com/statuses/update.json" > /dev/null |
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
| parse_git_branch() { | |
| RSLT='' | |
| GIT_BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' | awk '{print $2}'` | |
| if [ "$GIT_BRANCH" ] | |
| then | |
| GIT_STATUS=`git status 2> /dev/null | grep 'working directory clean'` | |
| CLR='2' | |
| if [ "$GIT_STATUS" ] | |
| then | |
| CLR='2' |
NewerOlder