Skip to content

Instantly share code, notes, and snippets.

View jonbruner's full-sized avatar

Jon Bruner jonbruner

View GitHub Profile
@jonbruner
jonbruner / iso-country-codes.py
Created March 26, 2018 17:52
All ISO two-letter country codes as a Python list
["AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR",
"AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE",
"BZ", "BJ", "BM", "BT", "BO", "BQ", "BA", "BW", "BV", "BR", "IO",
"BN", "BG", "BF", "BI", "CV", "KH", "CM", "CA", "KY", "CF", "TD",
"CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI",
"HR", "CU", "CW", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG",
"SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF",
"PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD",
"GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN",
"HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT",
@jonbruner
jonbruner / tensorflow-aws-2.sh
Last active July 27, 2016 02:58
How to install TensorFlow on an AWS GPU instance
# Borrowing this from two sources, with updates to TensorFlow 0.9, using Anaconda Python 2.7
# https://gist.github.com/erikbern/78ba519b97b440e10640
# https://gist.github.com/dennybritz/f37ae8b740d09b221fb103a3a04124a3
# This is not actually a shell file; just using .sh so that highlighting works
# Also see http://ramhiser.com/2016/01/05/installing-tensorflow-on-an-aws-ec2-instance-with-gpu-support/
sudo apt-get update
sudo apt-get install -y build-essential git python-pip libfreetype6-dev libxft-dev libncurses-dev libopenblas-dev gfortran linux-headers-generic linux-image-extra-virtual unzip swig
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1504/x86_64/cuda-repo-ubuntu1504_7.5-18_amd64.deb