Install Ruby 2.0.rc1

Ruby 2.0 is no longer a work in progress! Ruby 2.0 Release Candidate 1 was released today! Here's how to get it: Install Homebrew: ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)" Make sure brew is up to date: brew update Install rbenv, ruby-build, and ...

Moving to Individual Cookbooks

If you've been working with Chef in your organization for awhile, you've probably accumulated a bunch of cookbooks in a giant repository. With great tools like Berkshelf out there, it's become customary to rely on external community cookbooks, git repositories,...

Install Ruby 2.0 Preview 2

Ruby 2.0 is still a work in progress, but it's already at preview 2. If you're looking to play with it, here are some steps to install Ruby 2.0 Preview 2 on Mac OSX Mountain Lion (and older OSX versions) Install Homebrew: ruby -e "$(curl -fsSkL raw.github.com/m...

Ruby Local Method map Shortcut

In Ruby, we can pass blocks as directly as variables using &. This allows us to transform really simple map operations like this: arr.map{ |a| a.downcase } into this: arr.map(&:downcase) To me, the latter example is much cleaner, but there are some limitations:...

Add SSH Known Hosts with Chef

When connecting to an SSH server for the first time, you are often presented with a message like this: The authenticity of host 'github.com (207.97.227.239)' can't be established. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. Are you s...

Moving to Octopress

Today, I spent a few hours and migrated my entire blog from tumblr to Octopress. I did this for a variety of reasons. First, I want to start posting more tutorials. The tumblr UI doesn't provide an effective way to add code and code snippets, it doesn't support...