Skip to content

Instantly share code, notes, and snippets.

@zph
Created June 6, 2013 15:01
Show Gist options
  • Save zph/5722162 to your computer and use it in GitHub Desktop.
Save zph/5722162 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
#
require 'open-uri'
if ARGV.empty?
puts "#{__FILE__} requires a Github username"
exit(1)
else
USER = ARGV[0].dup
end
url = "https://github.com/#{USER}.keys"
output = "# Github Pubkeys for #{USER}\n"
output += open(url).read
print output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment