Archive for October 2007
unix: recursive and case-sensitive grep
grep -r -i word .
Lowpro – Hijacking Forms
Want to hijack a normal form to make it submit via ajax? If you’re using prototype and lowpro:
Event.addBehavior({
'#order_sandwhich_form' : Remote.Form
})
via http://jlaine.net/2007/8/6/from-rails-ajax-helpers-to-low-pro-part-2
A bash alias for using the old version of capistrano
Capistrano 2.x is looking really nice but for an ongoing project with a mammoth deploy.rb file I’m sticking with cap 1.2 (the current release at the time of the project). Thanks to the upgrade FAQ I found an easy way to do this. I created a bash alias because I hate typing _1.2_. Note: you have to have the previous gem still installed. ‘gem list’ to find out.
alias cap1='cap _1.2_ '
unix: find
find . -name "*share*" -print