How to uninstall all ruby gems in one line

Update: whilst this post is still useful, I now recommend that people use rvm to manage their gems, which makes the following post redundant as rvm allows you to quickly and easily delete gemsets at will. If you haven’t started using it yet, why not?

Today I found myself needing to uninstall all the gems installed on my system. As I didn’t want to uninstall each gem by hand (there was quite a long list) I started poking about for options in the gem command. Unfortunately the ruby gems tool does not have an option to uninstall all gems at once, so something else was required. Enter a bit of command line magic! Continue reading

Tell Git to ignore changes to tracked files

This post is a short one and is as much a note to myself as anyone else. I have used this essential command many times in the past, but I use it so infrequently I always have to go and look it up when I come to need it. This post will be much quicker for me to find 🙂

Sometimes you find that you need to make a change to a file (often a config file) that makes sense for your local development environment, but Continue reading

A business blog is not just for Xmas

Every sinice I have been working on my own web startup I have had a very keen interest in Internet marketing. I love studying the ins and outs of all the different techniques and love to devour any articles that pop up on my Hacker News feed about scrappy startups finding novel ways to promote themselves on the cheap.

One of the prevailing pieces of wisdom is that the foundations of a business’s web marketing strategy should be the company blog. Continue reading