Code Curiosity Prying for knowledge

Sublime: Tab Size Per Extension

Pigeon

Read more

Mocha with blocks

The popular ruby mocking library, mocha, has a handy feature for testing incovations. The with method can take a block. This is useful for assert params that you are calling the object with.

Read more

Upgrading a Heroku Database

Migrating database instances on heroku is surprisingly easy.

Read more

Setup Postgres

Setup postgres with an application user.

Read more

Install Redis on Ubuntu

Setting up Sidekiq recently forced me to install redis.Sidekiq requires a pretty recent version of redis. One more recent than the package manger on Ubuntu provides. You can use the following script to install a more recent version. It's also useful for other packages you might need more up to date versions of (nginx, postgres, etc...)

Read more