$ git clone https://gist.github.com/ryanmjacobs/50a7944e929c1329ad44 xkcd
$ cd xkcd
$ gem install colorize
$ chmod +x xkcd.rb
$ ./xkcd.rb
Some extra info if you're curious:
git clone ... xkcd
grabs these files and puts them in a directory called xkcd.