This file contains 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
8:51:22 AM smerrill: ohai\n | |
8:51:25 AM smerrill: s/./&/ | |
8:51:26 AM n00b_sedbot: What smerrill meant to say was: | |
8:51:26 AM n00b_sedbot: ohai | |
8:51:37 AM smerrill: s/$/, dudes!/ | |
8:51:38 AM n00b_sedbot: What smerrill meant to say was: | |
8:51:39 AM n00b_sedbot: ohai, dudes! | |
8:51:39 AM n00b_sedbot: , dudes! | |
8:51:39 AM n00b_sedbot: , dudes! | |
8:51:45 AM smerrill: s/$/, dudes!/ |
This file contains 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
var command = sprintf("echo '%s' | /usr/local/bin/gsed -e '%s'", | |
last_said[message.user].replace("'", "'\"'\"'"), | |
result[1].replace("'", "'\"'\"'")); |
This file contains 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
brew install lorem; lorem -l 108 -q 10 | say |
This file contains 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
var sys = require("sys"), | |
http = require("http"), | |
growl = require("./node-growl/lib/growl"), | |
child_process = require("child_process"); | |
function createClient() { | |
var i = http.createClient(80, website); | |
// Handle a connection error. | |
// Thanks to http://rentzsch.tumblr.com/post/664884799/node-js-handling-refused-http-client-connections. |
This file contains 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
gfind . -type f -name *.css -print0 | xargs -0 yuicompressor -o '.css$:.css' | |
gfind . -type f -name *.js -print0 | xargs -0 yuicompressor -o '.js$:.js' |
This file contains 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
hg status | gawk '/^M/ { print $2; }' | egrep -L 'filefield_paths|ffp' | xargs hg revert --no-backup |
This file contains 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
tell application "System Events" | |
set frontmost_app to item 1 of (get name of processes whose frontmost is true) | |
end tell | |
tell application "Google Chrome" | |
activate | |
set i to 0 | |
repeat with t in (tabs of (first window)) | |
set i to i + 1 | |
if title of t is "Amazon Cloud Player" then |
This file contains 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
# Mimic xsel simply for the benefit of X11 apps. | |
xsel() { | |
if [[ $@ == "-ib" ]]; then | |
command pbcopy; | |
elif [[ $@ == '-ob' ]]; then | |
command pbpaste; | |
else | |
command xsel "$@"; | |
fi | |
} |
This file contains 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
!.*/(CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$ |