RVM aliases

Problem: I recently upgraded RVM, and now every time I cd into a directory with a .rvmrc file that has ruby_string="ruby-1.9.3", I get this warning: ruby-1.9.3-p392 is not installed. To install do: 'rvm install ruby-1.9.3-p392' Unfortunately, I’m too busy to install the newer patch level Ruby right now. Solution: Create a RVM alias that points...

View SCSS in Chrome Dev Tools with Source Maps

@paul_irish recently tweeted about this ( I can’t find the tweet right now so I’ll just summarize ) The one nice thing about writing vanilla CSS is that when something breaks or needs to be tweaked you can pop open the dev tools and find the exact file and line where the offending CSS lives....

Use SSH agent forwarding to deploy via Capistrano

Setting up and maintaining deploy keys in github can be annoying. If you’re looking for a workaround, follow github’s instructions to deploy using your own personal SSH key. Moving forward, we’ll assume you’ve generated SSH keys on your local machine. Step 1: add a few lines to the ~/.ssh/config file on your local machine. We’re...

Update WordPress & Plugins over SSH

For security reasons, we don’t typically enable FTP on any of our servers. WordPress downloads core and plugins via FTP, so updating usually involves doing it locally and then deploying the changes. In most cases WordPress core isn’t included in the repo, so that has to be done manually : ssh into the server, wget...

Serving @font-face fonts to Firefox from an S3 bucket

I’m building a Rails site that uses the excellent asset_sync gem to push my assets up to an S3 bucket on deploy, and I ran into an issue where @font-face fonts were rendering fine in all browsers except Firefox. After a little googling, I found that it’s an issue with Firefox’s “file uri origin” policy. http://stackoverflow.com/questions/2856502/css-font-face-not-working-with-firefox-but-working-with-chrome-and-ie http://stackoverflow.com/questions/5008944/how-to-add-an-access-control-allow-origin-header The...