Skip to content

Instantly share code, notes, and snippets.

@ruckuus
Created December 16, 2014 09:24
Show Gist options
  • Save ruckuus/8fe280b83473a40b3b86 to your computer and use it in GitHub Desktop.
Save ruckuus/8fe280b83473a40b3b86 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'curl'
coll = 'a'.upto('z').to_a + '0'.upto('9').to_a
letters = coll.to_a.permutation(3).to_a
letters.each do |possible_uname|
u_epoint = "https://github.com/" + possible_uname.join("")
r = Curl::Easy.new(u_epoint) do |curl|
curl.headers["User-Agent"] = "Si Beludak"
curl.on_missing do |resp, err|
puts "Accessing" + u_epoint
puts "Err:" + err
end
curl.on_missing do |resp, err|
puts "Accessing" + u_epoint
puts "Err:" + err
end
end
r.perform
sleep 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment