nicinabox

Writings on bikes, beer, and code

Shortcutting Heroku Deployments

If you familiar with Heroku you may know that deploying is as easy as pushing to their remote repository:

1
$ git push heroku

But this can get really monotonous, especially if you’re frequently pushing to a staging app (then you have to specify the branch name as well). To make things a little easier I whipped up this little shell function to make deployments a snap.

We always name our heroku remotes staging and production. To deploy to staging, for instance, just pass the branch name you want to deploy:

1
$ deploy dev

Here’s the function. Just drop it in your .bashrc (or whatever shell config you use).


Building a Kegerator

A couple months ago I decided I’d had enough of drinking stale, bottled beer and that the solution to this problem would be to build a kegerator and get the brewery to fill my keg with fresh brew. Of course, later on I found out that none of the breweries will actually fill personal kegs, at least here in Chicago. C’est la vie. I’ll be brewing my own batch soon to fill it instead.

Here is a little walkthrough of disassembling the the fridge and modifications that I made. I’m using a Frigidaire FFPH44M4LB fridge. It’s 4.4 cu. ft. and will fit 2 Cornelius kegs and a 5lb C02 tank in the back.

Geektool Scripts

UPDATE 8/15/2011: Most of these scripts have been repackaged in a gem available on rubygems.org

These are an ever growing compilation of scripts and code snippets that I have written or collected in a format that’s easy to understand and use. If you need help feel free to email me at nic@nicinabox.com, but please read the documentation first.

I encourage you to checkout some of the Desktop screenshots on Flickr (some are very nice!) for ideas.If you have a script or something clever you’d like to add to this collection, please contact me.

These commands require that you actually install the scripts. Some are built into the system, but most are custom. For more information, check readme.html included in the download.

Color Palette

This is a color palette that I’ve compiled. I recommend using a tool like 0to255 to find shades of these colors to your liking. Enjoy!