Skip to content

Instantly share code, notes, and snippets.

View dosullivan's full-sized avatar

Daniel O'Sullivan dosullivan

View GitHub Profile
@dosullivan
dosullivan / gist:239e016382a1d1cb381a0f1622fdcbe9
Created November 30, 2016 23:20 — forked from tjcorr/gist:3baf86051471062b2fb7
CloudFormation to demo etcd-aws-cluster
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "An etcd cluster based off an auto scaling group",
"Mappings" : {
"RegionMap" : {
"eu-central-1" : {
"AMI" : "ami-840a0899"
},
"ap-northeast-1" : {
"AMI" : "ami-6c5ac56c"
{"timestamp":1470337564,"status":200,"request":{"mbean":"com.app.servlet:type=LoggingFilter","type":"read"},"value":{"HeaderEnabled":false,"RequestsPerSecond":0.46879840119882754,"TimingEnabled":false,"RequestCount":85747,"ParamEnabled":false,"RequestEnabled":false}}
\A\[%{HTTPDATE}] %{IP} - %{HOSTNAME} "%{WORD} %{PATH} HTTP/1\.1" %{NUMBER} %{GREEDYDATA}
@dosullivan
dosullivan / nginx.conf
Created April 5, 2016 05:35 — forked from cpswan/nginx.conf
Using nginx to proxy to an AWS ELB
daemon off;
worker_processes 1;
events { worker_connections 1024; }
http{
sendfile on;
@dosullivan
dosullivan / get-static-docker
Created March 12, 2016 02:22 — forked from sigma/get-static-docker
static docker binary in CoreOS
#!/bin/bash
VERSION=$(docker --version | awk '{print $3}' | sed 's/,//')
BINARY="/opt/bin/docker-$VERSION-static"
LINK="/opt/bin/docker.static"
if [ ! -e "$BINARY" ]; then
curl -L --create-dirs -o "$BINARY" "https://get.docker.com/builds/Linux/x86_64/docker-$VERSION"
chmod a+x "$BINARY"
ln -sf "$BINARY" "$LINK"

Keybase proof

I hereby claim:

  • I am dosullivan on github.
  • I am danielosullivan (https://keybase.io/danielosullivan) on keybase.
  • I have a public key whose fingerprint is 95F1 D135 16F4 860B 8A7C C8A4 7187 6ADB C30E D4AB

To claim this, I am signing this object: