Skip to content

Instantly share code, notes, and snippets.

Created December 7, 2011 07:12
What would you like to do?
Generate ip-to-country.bin file from ip-to-country.cvs
# use for WordPress Plugin: Show Useragent
cd ip2c
wget -O IpToCountry.csv.gz
gunzip IpToCountry.csv.gz
java -jar ip2c.jar -c IpToCountry.csv IpToCountry.bin
ls -sSh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment