I hereby claim:
- I am miguelfrde on github.
- I am miguelfrde (https://keybase.io/miguelfrde) on keybase.
- I have a public key ASDTyQNjIN6EunJlqu73C7qGjxeHCPWLBNskeI1hOqip_Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| sudo apt-get update | |
| sudo apt-get install -y python-pip | |
| sudo pip install awscli | |
| aws configure # enter credentials for a user with full s3,ec2 access / admin access | |
| export KUBERNETES_PROVIDER=aws | |
| export KUBE_AWS_ZONE=us-west-2a | |
| export KUBE_AWS_INSTANCE_PREFIX=k8s | |
| export KUBE_MINION_IMAGE=ami-9abea4fb # Ubuntu server 14.04 |
| ########################### | |
| # /etc/network/interfaces # | |
| ########################### | |
| source-directory /etc/network/interfaces.d | |
| auto lo | |
| iface lo inet loopback | |
| iface eth0 inet dhcp |
| openssl genrsa -des3 -out ssl.key 2048 | |
| openssl req -new -key ssl.key -out ssl.csr | |
| cp ssl.key ssl.key.orig | |
| openssl rsa -in ssl.key.orig -out ssl.key | |
| openssl x509 -req -days 1095 -in ssl.csr -signkey ssl.key -out ssl.crt | |
| cat ssl.crt ssl.key > ssl.pem |
| # Requirements: | |
| # OSX: brew install heroku-toolbelt | |
| # Arch Linux: wget -qO- https://toolbelt.heroku.com/install.sh | sh | |
| # pacman -S openssh | |
| # # Add /usr/local/heroku/bin to PATH | |
| ssh-keygen -t rsa | |
| heroku login | |
| heroku keys:add |
| /*================================================== | |
| = Bootstrap 3 Media Queries = | |
| ==================================================*/ | |
| /*========== Mobile First Method ==========*/ | |
| /* Custom, iPhone Retina */ | |
| @media only screen and (min-width : 320px) { | |
| } |
| def power_set(lst): | |
| result = [[]] | |
| for x in lst: | |
| result += [subset + [x] for subset in result] | |
| return result | |
| def power_set_one_line(lst): | |
| return reduce(lambda r, x: [s + x for s in r], lst, [[]]) |
| - initial mark (FF) | |
| read input 49 = 1 and 48 = 0 (q0) | |
| >>,[>,<-------- -------- -------- -------- -------- -------- >] | |
| - final mark (FF) | |
| <[-<] change ones for zeros until a zero is found (q1) | |
| + change zero for one (q1 to q2) | |
| < ignore all characters until FF is found (q2) | |
| + increase by one (ensures that the data pointer moves until FF is found) | |
| [ if the byte at the data pointer is zero then FF was found | |
| - it wasn't zero decrease it |