Skip to content

Instantly share code, notes, and snippets.

@AgoristRadio
Forked from comboy/update.rb
Created February 19, 2012 02:22
Show Gist options
  • Save AgoristRadio/1861668 to your computer and use it in GitHub Desktop.
Save AgoristRadio/1861668 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