Skip to content

Instantly share code, notes, and snippets.

@patrickdavey
Created June 18, 2013 21:44
Show Gist options
  • Save patrickdavey/5809735 to your computer and use it in GitHub Desktop.
Save patrickdavey/5809735 to your computer and use it in GitHub Desktop.
script to clone railscasts episodes
#!/usr/bin/env ruby
require "rubygems"
require "octokit" # gem install octokit
1.upto(5) do |page|
Octokit.repositories("railscasts", page: page, per_page: 100).each do |repo|
system "git clone git://github.com/railscasts/#{repo.name}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment