Skip to content

Instantly share code, notes, and snippets.

@comboy
Created June 18, 2011 22:11
Show Gist options
  • Save comboy/1033551 to your computer and use it in GitHub Desktop.
Save comboy/1033551 to your computer and use it in GitHub Desktop.
update all your namecoin domains
require 'json'
# put this file in the same dir as namecoind executable
JSON.load(`./namecoind name_list`).each do |domain|
if domain['expires_in'] < 5000
command = "./namecoind name_update '#{domain['name']}' '#{domain['value']}'"
puts command
puts `#{command}`
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment