This file contains hidden or 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
import base64 | |
import hashlib | |
import hmac | |
import time | |
from email.utils import formatdate | |
import requests | |
HOST="somewhere" | |
KEY_ID="gimme" | |
SECRET="ssshhh" |
This file contains hidden or 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
# 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 |
This file contains hidden or 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
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" /> |