Skip to content

Instantly share code, notes, and snippets.

@lian
Created November 6, 2013 23:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lian/7345976 to your computer and use it in GitHub Desktop.
Save lian/7345976 to your computer and use it in GitHub Desktop.
gists-fetcher.rb
require 'open-uri'; require 'json'
username = ARGV[0]
JSON.parse(open("http://gist.github.com/api/v1/json/gists/#{username}").read)['gists'].each{|i| system "git clone git://gist.github.com/#{i['repo']} gist-#{i['repo']}" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment