Skip to content

Instantly share code, notes, and snippets.

View rcoup's full-sized avatar

Robert Coup rcoup

View GitHub Profile
@rcoup
rcoup / companies.py
Last active August 29, 2015 13:56 — forked from NZKoz/companies.rb
import base64
import hashlib
import hmac
import time
from email.utils import formatdate
import requests
HOST="somewhere"
KEY_ID="gimme"
SECRET="ssshhh"
@rcoup
rcoup / ephemeral-setup.sh
Created August 7, 2012 22:49 — forked from alq666/bootstrap.sh
Raid0 bootstrap for ephemeral EC2 disks
# On EC2, /mnt is usually already on
mounted=$(mount | grep /mnt | wc -l)
if [ $mounted -eq 1 ]; then
umount -l /mnt
fi
# Install mdadm and xfsprogs unattended
DEBIAN_FRONTEND=noninteractive apt-get -y install mdadm xfsprogs
# Create a RAID0 volume with 256KiB stripes, ignore what's already on the device
To generate
<RasterSymbolizer>
<RasterColorizer default-mode="linear" default-color="white" epsilon="0.001">
<stop color="blue" value = "-1000" />
<stop color="red" value = "-500" mode = "discrete" />
<stop color="yellow" value = "0" />
<stop value = "5" />
<stop color="red" value = "10" />
<stop color="green" value = "15" />