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
#!/bin/sh | |
# Ubuntu 14.04 | |
sudo apt-get update | |
sudo apt-get install -y nginx apache2 libapache2-mod-wsgi libpq5 redis-server git-core | |
wget http://packaging.ckan.org/python-ckan_2.6-trusty_amd64.deb | |
sudo dpkg -i python-ckan_2.6-trusty_amd64.deb | |
# Create RDS PostgreSQL database |
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
# View registry settings | |
Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0 | |
# Change registry settings | |
# Reverse mouse wheel scroll FlipFlopWheel = 1 | |
# Normal mouse wheel scroll FlipFlopWheel = 0 | |
Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopWheel 1 } |
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
#!/bin/sh | |
# Configure IP forwarding on CentOS | |
echo 1 > /proc/sys/net/ipv4/ip_forward | |
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE | |
touch /tmp/ipforwarding |
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
#!/bin/sh | |
# Install nginx on CentOS (as root) | |
#yum -y update | |
yum -y install epel-release | |
yum -y install nginx | |
systemctl start nginx | |
systemctl enable nginx | |
MYIP=`/sbin/ifconfig eth0| grep 'inet' | grep 'netmask' | sed 's/ */ /g' | cut --delimiter=' ' -f3` |
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
from locust import HttpLocust, TaskSet | |
def home(l): | |
l.client.get("/", verify=0, name="/") | |
def starter(l): | |
l.client.get("/learn/the-starter-kit/", verify=0, name="/starter") | |
def basics(l): | |
l.client.get("/learn/basics/", verify=0, name="/basics") |
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
<mxfile type="device" userAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36" version="6.0.2.4" editor="www.draw.io"><diagram name="Page-1">5Vxbk6I4FP41PmpBuPrY9vRcqnpmu6q3dnb2xYoQNTtIWIi3+fWbIOGW0NotqNP0gw0hhPB9X845yYkOjPvV7lMMo+VX4qNgADR/NzA+DADQdc1h/3jJPivRgHsoWcTYz8qKgmf8C4mKWeka+yipVKSEBBRH1UKPhCHyaKUMxjHZVqvNSVB9agQX2RO1ouDZgwGSqn3HPl2KF7PHxYXPCC+W2aNdYB8uzKD3cxGTdZg9bwCMefp3uLyCoq3suckS+mRbKjIeBsZ9TAg9HK129yjg4ArYDvd9bLia9ztGIT3lBjvrxwYGayS6nHaM7gUYPkyWiNfXBsZkSVcBO9TZIet7xKusdgsugxHcJiP+7lEyiuOUlckcB8E9CUjMqoUkRPwuGpOfSBQyfLT0j11hrfiY9bt2Q9ZBFFO0a3xLPceOiRKRFaLxnlXZVWWVyXHoZOfbgtuxQGJZotURN8JMT4u86QJTdpDBqobYHfcBYqMGsa6AGCggto0WILb1TiBmh1MvIGt/ipmhkYDNwCsTwLD+aI8doHeKtSVhLYPtKLA224AadAP1BuIAznCA6X76q0HGcwGtQvMdKrsGt66QNnBVcI/bwNvoG972dfE2+4b3deG2JLgTBGNvOYQDYAfcwfl4ww4X/FDXRtrIYB+sWWCKCuykVOcd+lanypA5tmSGTAVDrRDkSAT5kMJmekDf6THGigHUGT2uRM8WzZrZ0fvHjl5hJzdlF2FHDv391a9mdvpHTs33GBckx5EjK07OrHHo9I0c46rsyHEYN2zN7PSQnitaNkeO29KwoJE |
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
#!/bin/sh | |
# Configure IP forwarding on Ubuntu | |
echo net.ipv4.ip_forward=1 >> /etc/sysctl.conf | |
sysctl -w net.ipv4.ip_forward=1 | |
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE | |
touch /tmp/ipforwarding |
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
# Build an ubuntu image with awscli and terraform support and one Linux account per | |
# AWS account | |
# | |
# 1) Put this Dockerfile in a folder. | |
# 2) Create a sub-folder called home and sub-folders within that for each Linux | |
# account. These sub-folders can contain any files you want added to the | |
# Linux account's home directory, e.g. .bash_profile, .aws, etc. | |
# 3) Build the image: | |
# docker build -t andypowe11/ubuntu-awscli . | |
# 4) Run the container: |
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
{ | |
"garment": [ | |
"bell-bottoms", "blue jeans", "board shorts", "breeches", "britches", | |
"capri pants", "cargo pants", "chaps", "chinos", "cords", "corduroys", "cropped pants", | |
"culottes", "cutoffs", "daks", "denims", "drainpipe trousers", "dungarees", | |
"flannels", "flares", "hipsters", "hot pants", "jeans", "jeggings", "jodhpurs", | |
"joggers", "khakis", "leggings", "levi's", "overalls", "pantaloons", "pants", | |
"pedal pushers", "shorts", "skinny jeans", "ski pants", | |
"slacks", "spray-on jeans", "stirrup pants", "stretch pants", | |
"strides", "sweatpants", "trews", "trousers" |
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
# Build an ubuntu image with awscli support and one Linux account per | |
# AWS account | |
# | |
# 1) Put this Dockerfile in a folder. | |
# 2) Create a sub-folder called home and sub-folders within that for each Linux | |
# account. These sub-folders can contain any files you want added to the | |
# Linux account's home directory, e.g. .bash_profile, .aws, etc. | |
# 3) Build the image: | |
# docker build -t andypowe11/ubuntu-awscli . | |
# 4) Run the container: |