This file contains 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/bash | |
fdisk -lu | |
pvscan | |
vgscan | |
vgchange -a y | |
lvscan | |
mount /dev/ubuntu-vg/root /mnt | |
mount --bind /dev /mnt/dev | |
mount --bind /proc /mnt/proc |
This file contains 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
real_ip_header True-Client-IP; | |
set_real_ip_from 0.0.0.0/0; |
This file contains 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
real_ip_header X-Forwarded-For; | |
real_ip_recursive on; | |
set_real_ip_from 10.0.0.0/16; | |
set_real_ip_from 54.192.0.0/16; | |
set_real_ip_from 54.230.0.0/16; | |
set_real_ip_from 54.239.128.0/18; | |
set_real_ip_from 54.239.192.0/19; | |
set_real_ip_from 54.240.128.0/18; | |
set_real_ip_from 204.246.164.0/22; | |
set_real_ip_from 204.246.168.0/22; |
This file contains 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
real_ip_header X-Forwarded-For; | |
real_ip_recursive on; | |
set_real_ip_from 10.0.0.0/16; | |
set_real_ip_from 54.192.0.0/16; | |
set_real_ip_from 54.230.0.0/16; | |
set_real_ip_from 54.239.128.0/18; | |
set_real_ip_from 54.239.192.0/19; | |
set_real_ip_from 54.240.128.0/18; | |
set_real_ip_from 204.246.164.0/22; | |
set_real_ip_from 204.246.168.0/22; |
This file contains 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
<?php | |
/** | |
* @file | |
* Amazon Elastic Load Balancer Settings. | |
* | |
* Force server to use https:// path if SSL is handled at load balancer. | |
* | |
* @see http://drupal.org/node/185161#comment-5452038 | |
*/ |
This file contains 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
pre.console-output { | |
color: #e6e6e6; | |
background-color: #000; | |
padding: 10px; | |
} |
This file contains 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
# This is just a scratchpad after I hacked what I needed in an irb session | |
require 'octokit' | |
Octokit.configure do |c| | |
c.login = 'searls' | |
c.password = 'c0d3b4ssssss!' | |
end | |
client = Octokit::Client.new | |
repos = client.repos #Note, for an org's repos, see `client.orgs.first.rels[:repos].get.data` |
This file contains 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/bash | |
# User data to configure a vanilla Ubuntu EC2 instance. | |
# Installs chef-client (with minimal dependencies), | |
# configures chef, and adds roles | |
test $UID == 0 || (echo "Error: must run as root"; exit 1) | |
######### STEP 1: OPERATING SYSTEM CONFIGURATION | |
BOOTLOG="/var/log/bootstrap.log" |
NewerOlder