Skip to content

Instantly share code, notes, and snippets.

View clintmiller's full-sized avatar

Clint Miller clintmiller

View GitHub Profile
@clintmiller
clintmiller / gist:94f111d2e98d2debc7d2d4bb1cfd6f68
Created August 22, 2017 16:01 — forked from pokle/gist:9271432
Automatically mount the EC2 ephermal SSDs as raid0 on Ubuntu

Launch your EC2 EBS instance with two SSDs on the second and third slots (after the root EBS volume), with this in your userdata:

#!/usr/bin/env bash

umount /dev/xvdb
umount /dev/xvdc
apt-get install mdadm -y
mkdir /u01

cat > /etc/init/mount-ephermal-ssd.conf <

@clintmiller
clintmiller / 01 same named resource.pp
Last active May 6, 2016 17:19
Puppet - How to deal with a Duplicate Resource Declaration error
# ORIGINAL ROLES
class role::web {
# snip ...
sysctl { "net.core.somaxconn":
# snip ...
value => 8192
}
# snip ...
### Keybase proof
I hereby claim:
* I am clintmiller on github.
* I am clintmiller (https://keybase.io/clintmiller) on keybase.
* I have a public key whose fingerprint is D4B3 201E 274E 37DD 006E 835B C3FA BAB3 8CB4 7172
To claim this, I am signing this object:
db_identifier: clintmiller
tenants:
graceway:
host:
media:
http: gw-assets.devstaging.rtpcore.com
https: gw-assets.devstaging.rtpcore.com