December 2009
1 post
SSH Tunneling
Originally from http://www.revsys.com/writings/quicktips/ssh-tunnel.html and documented here as well for posterity.
My intention was to tunnel redis, which currently offers weak authentication and no encrypted communication. Redis by default starts on port 6379, so in this example I will be using that.
May 2009
1 post
ar_sendmail Stack Level Too Deep
ar_sendmail seems to have problems with stack depth when used in combination with various plugins. Having a rake task that depends on :environment or using script/runner for running ar_sendmail results in ‘splosions with Stack Level Too Deep Errors while deleting the email record after the email is sent. Solution to the problem:
Then setup a cronjob:
April 2009
1 post
Find Your Indexes
This will find all the indexes on a mysql database for you. It’s handy when reviewing things.
March 2009
5 posts
Ban Distractions
I’m in the terrible habit of distracting myself with stupid junk, especially when I get stuck on something or don’t know what to do next. I put this in my /etc/hosts and it has helped me a lot. I plan on adding other distractions as I notice them.
Order By Set
You can order a column based on a specific set of values for that column.
Excluding Tests from Autotest
More autotest hackery. This can go in /root/of/your/project/.autotest
Lazy Autotest
A lazy autotest that doesn’t re-run every test when you go from red to green.
Debugging Ruby Processes
Some hackery taught to me by Justin Greer