View posts for » March, 2009

Load different configuration for each environment

Sometimes is necessary load different configuration for each environment. This is a way to do it.

Add to config/environments/development.rb

Create config/environments/development_config.yml

Repeat the process with production environment.

The development file would be different for each developer, so is better to delete it from the repository:
cp config/environments/development_config.yml config/environments/development_config_sample.yml

Add to .gitignore
config/environments/development_config.yml

Comments (0)

Mac Art

mac-art Yes, Macs also crash, but with artistic style.

Comments (0)

Show the current song in iTunes

If you want to tell Growl to show the current song on iTunes after hitting a combination of keys, you can use a Quicksilver trigger. Simply put this script in ~/Library/Application Support/Quicksilver/scripts, and create a custom trigger to open it.

Comments (2)