Skip to content

Instantly share code, notes, and snippets.

@D3MZ
Last active December 16, 2015 06:19
Show Gist options
  • Save D3MZ/5390801 to your computer and use it in GitHub Desktop.
Save D3MZ/5390801 to your computer and use it in GitHub Desktop.
cloud script.
screen -L
wget http://download.maxmind.com/download/worldcities/worldcitiespop.txt.gz
gunzip worldcitiespop.txt.gz
mv worldcitiespop.txt worldcitiespop.csv
ruby -e "
require ENV['HOME']+'/maxmind_csv_to_mongo.rb'
puts Maxmind.new('worldcitiespop.csv').parallel_dump_into_database
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment