Skip to content

Instantly share code, notes, and snippets.

ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMYUzAO101O4iKEKWeDXpJCDwyepkrUFj2rsujSav2BV csullivan@game-box
# Updated to support the ENI formula
# maxPods = (numInterfaces - 1) * (maxIpv4PerInterface - 1) + 2
#
a1.medium 5
a1.large 20
a1.xlarge 44
a1.2xlarge 44
a1.4xlarge 205
a1.metal 205
c1.medium 7

Keybase proof

I hereby claim:

  • I am charliesu on github.
  • I am charlessullivan (https://keybase.io/charlessullivan) on keybase.
  • I have a public key whose fingerprint is 1C45 A7B7 3382 6B14 06F2 50D9 99BD 9033 B8FF 0E2C

To claim this, I am signing this object:

23.20.0.0/14 (23.20.0.0 - 23.23.255.255)
50.16.0.0/15 (50.16.0.0 - 50.17.255.255)
50.19.0.0/16 (50.19.0.0 - 50.19.255.255)
54.160.0.0/13 (54.160.0.0 - 54.167.255.255) NEW
54.172.0.0/15 (54.172.0.0 - 54.173.255.255) NEW
54.196.0.0/15 (54.196.0.0 - 54.197.255.255)
54.198.0.0/16 (54.198.0.0 - 54.198.255.255)
54.204.0.0/15 (54.204.0.0 - 54.205.255.255)
54.208.0.0/15 (54.208.0.0 - 54.209.255.255)
54.210.0.0/15 (54.210.0.0 - 54.211.255.255)
#!/usr/bin/env bash
function update_packages () {
apt-get update; apt-get upgrade -y
apt-get install ntp unzip dstat vim -y
}
function setup_java7 () {
cd /opt
wget -q http://yourdomain.com/jdk-7u25-linux-x64.gz -O /opt/jdk-7u25-linux-x64.gz
tar -xf jdk-7*
{
"status": 200,
"likelihood": 0.9,
"requestId": "46db67d2-4001-4c09-9190-5d478dff696f",
"photos":
[
{
"type": "twitter",
"typeId": "twitter",
"typeName": "Twitter",
@CharlieSu
CharlieSu / spm.rb
Last active December 20, 2015 21:09
Chef recipe for installing SPM
# Author: Charles Sullivan (charles@fullcontact.com)
if node.spm[:token] # Will only run if a SPM token is present.
apt_repository "sematech" do
action :add
uri "http://pub-repo.sematext.com/ubuntu"
distribution node['lsb']['codename']
components ["main"]
key "http://pub-repo.sematext.com/ubuntu/sematext.gpg.key"
notifies :run, "execute[apt-get update]", :immediately
end
ip-10-10-10-245:company-elasticsearch-fork csullivan(berk)$ berks upload
Using company-elasticsearch-fork (0.2.0) at path: '/Users/csullivan/Development/new-rome-chef/cookbooks/company-elasticsearch-fork'
Using company-core (0.1.0) at path: '/Users/csullivan/Development/new-rome-chef/cookbooks/company-core'
Using copperegg (0.2.1) at path
Using runit (1.1.4) at path
Installing bprobe (0.1.0) from git: 'git://github.com/boundary/bprobe_cookbook.git' with branch: 'master' at ref: '931cf4f26db090cdd657b7744db82edd5e16ab69'
Using build-essential (1.4.0) at path
Using xml (1.1.2) at path
Using java (1.11.4) at path
Using windows (1.8.10) at path
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC169BIxvsWQMlmQ3HaPMYTzwl5/wMb8Rt+UB3ZXEoQspoeKau6F5FAQR17MGB86/dakRwgphet5zsk+wvhErB7dUIF2+e40sWcdgrMiVgO/ndM4CtJU04QXnGoSbIi7LcKseCLjT54uaqHMJRIYIf/iiXisnMPHWAStEqxvJBTeHNe1BnfjzVP9nZCq99fLbJ+N64P9lQnuzhFEFfZ+ggJVFaVsqNhYuf1h4kuJG3TJAQyOBDO2b4bbw8Eq2Rl4UVTZ2cH6WGA/NxEOwAi1q0z2O92F8jmvpcNKAi5M0azsvCtqrMk2n8w9BTkjyx6On+F6rKHjoBm1Wf5JBDqGABh csullivan@Charless-MacBook-Pro.local
#!/usr/bin/env python
import httplib
import base64
import json
auth = base64.encodestring('{0}:{1}'.format('guest','guest'))
headers = {'Content-type':'application/json','Authorization':'Basic {0}'.format(auth)}
def remove_vhost(vhost):