Created
June 6, 2013 15:01
-
-
Save zph/5722162 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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