- Disable Windows Fast-Startup
- Disable Secure Boot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, [[]]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*================================================== | |
= Bootstrap 3 Media Queries = | |
==================================================*/ | |
/*========== Mobile First Method ==========*/ | |
/* Custom, iPhone Retina */ | |
@media only screen and (min-width : 320px) { | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########################### | |
# /etc/network/interfaces # | |
########################### | |
source-directory /etc/network/interfaces.d | |
auto lo | |
iface lo inet loopback | |
iface eth0 inet dhcp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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: