Skip to content

Instantly share code, notes, and snippets.

@bruzed
Created September 21, 2012 21:14
Show Gist options
  • Save bruzed/3763940 to your computer and use it in GitHub Desktop.
Save bruzed/3763940 to your computer and use it in GitHub Desktop.
Clone all github repos for C4iOS examples and code
# ruby 1.8.7
$ sudo gem install json
$ curl -s https://api.github.com/users/C4Tutorials/repos | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each {|repo| %x[git clone #{repo["ssh_url"]} ]}'
$ curl -s https://api.github.com/users/C4Code/repos | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each {|repo| %x[git clone #{repo["ssh_url"]} ]}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment