2009-12-01から1ヶ月間の記事一覧

Rails: Using url_for in script/console or irb

Here is how to call url_for from within script/console (don't use irb, use script/console): app.url_forSimple, but took a bit of Googling to find.References: http://www.caboo.se/articles/2006/3/23/url-generations-in-script-console

College Musical

I originally never intended this site to be more than a bunch of system/programming notes for myself, but in case anyone out there stumbles upon this... the following is the coolest thing I've seen on the Internet in a while. It is a music…

Recursive grep and skipping multiple directories using --exclude-dir

I have this shell script to skip svn and log directories when doing a recursive grep: #!/bin/sh grep --color=tty -d skip --exclude-dir=.svn --exclude-dir=log -r "$1" $2There is also what looks like a good replacement for grep called ack.