Skip to content

Instantly share code, notes, and snippets.

@np
Forked from comboy/update.rb
Last active October 4, 2015 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save np/2687007 to your computer and use it in GitHub Desktop.
Save np/2687007 to your computer and use it in GitHub Desktop.
update all your namecoin domains
#!/usr/bin/ruby
require 'json'
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