July 2008
3 posts
script/runner script that doesn't require an...
the output from Rails’ script/runner -h says you can create custom scripts with a fancy shebang line:
You can also use runner as a shebang line for your scripts like this:
-------------------------------------------------------------
#!/usr/bin/env /Users/bob/Projects/glowworm/script/runner
Product.find(:all).each { |p| p.price *= 2 ; p.save!...
file search similar to TextMate's CMD-T, in bash.
I’m a command line guy. I code Rails apps in vim. I’m happy. I am, however, slightly jealous of TextMate’s CMD-T feature, where you can open a file just by typing a part of the name.
Dusty pointed me to a vim tip for CMD-T like search in vim, but I don’t usually open files from within vim - I do it from the command line.
Here’s my hacked up way to get the same...
shared git repo (using ssh transport)
As a quick followup to my last post, here’s the steps I took to make my remote git repo usable by a group of developers, not just me:
/etc/group
After you’ve added accounts for everyone, make a group and add everyone to it. This line should look something like:
coders:x:114:bob,docyes,phillip
git repo-config
After creating the remote repo (git —bare init), we need to set the...