Archive for July, 2008

Quick Bash Tip: Less mouse when finding commands

When I run rake --tasks looking for a particular command, I hate the process of picking up the mouse to copy and paste. I am very weak with my bash-fu and so I decided to ask someone. Thanks to one of my friends and co-workers, Sandro Turriate, I do not have to pick up the mouse anymore.

I use grep to single out the specific tasks I want, such as rake --tasks | grep db would only find commands containing the letters ‘db’.

Run rake --tasks | grep faker (where faker is what you are looking for), until you find ONLY the task you want to run.

Then run
rake --tasks | grep faker | sh and it runs the output. And of course # gets ignored.

1 Comment

Introducing is_rateable

Wow. I seem to be on an open-source roll lately. A lot of that is in thanks to Hashrocket and my job there. We strongly believe giving back to the community and thus I try to anytime I can.

I need a rating system and wanted something different than acts_as_rateable and decided that I would try to come up with one more tailored to my needs.

Installing this plugin, you do not have to worry about creating a star system(The CSS and XHTML on a star system is troublesome), it comes with one.

Along with all my plugins, you can get it on my github at http://github.com/zachinglis/is_rateable/.

As always patches welcome!

0 Comments