View All Public Notes
"Count the number of classes in your project using bash: find myproj -name \*.rb | xargs grep '^\s*class' | wc -l In rush, this is: myproj['**/*.rb'].search(/^\s*class/).lines.size Pesky stray mongrels? In bash: kill `ps aux | grep mongrel_rails | grep -v grep | cut -c 10-20` In rush: processes.filter(:cmdline => /mongrel_rails/).kill" #ruby #gems #cli #shell #examples #dev #pub