I hereby claim:
- I am hrzbrg on github.
- I am hrzbrg (https://keybase.io/hrzbrg) on keybase.
- I have a public key whose fingerprint is 7157 7F28 A4F8 ADA0 4B5C 7030 80CF 736D 5F76 0D04
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash -ue | |
# | |
# this script will attempt to detect any ephemeral drives on an EC2 node and create a RAID-0 stripe. | |
# It should be run once to setup the RAID, and automatically mount on reboot without further intervention. | |
# | |
# Beware, This script is NOT fully idempotent. | |
# | |
mount_point=${1:-"/mnt/storage"} | |
METADATA_URL_BASE="http://169.254.169.254/latest" |
#!/usr/bin/env python | |
import requests | |
import json | |
import sys | |
import os | |
import time | |
# Run without parameters to debug zabbix_sender | |
# Run with param jvm.uptime_in_millis to trigger trap sending and |
# Create a custom pattern in the patterns_dir: INSTANCEID \i-\w{8,17} | |
input { | |
s3 { | |
bucket => "com.example.bucketname" | |
region => "eu-west-1" | |
access_key_id => "A*******************" | |
secret_access_key => "*********************************" | |
type => "spotpricing" | |
codec => line |
#!/bin/bash -ue | |
# this script will attempt to detect any ephemeral drives on an EC2 node | |
mount_point=${1:-"/mnt/storage"} | |
METADATA_URL_BASE="http://169.254.169.254/latest" | |
INSTANCEID=$(wget -q -O - ${METADATA_URL_BASE}/meta-data/instance-id) | |
# Configure Raid - take into account xvdb or sdb | |
root_drive=$(df -h | grep -P '^.*/$' | awk 'NF==6{print $1}') |