created gist version using https://github.com/defunkt/gist gem since that was closest in spirit to Armando's existing script, although delete not supported.  There is a more up to date gem for gists using oauth and supporting more functionality https://github.com/ConradIrwin/jist/blob/master/lib/jist.rb whole approach could in principle be changed since github supports updating of gists, so no need to create new ones for each update?  Hacked this up as not much time, ideally would have test harness around everything ...