Skip to content

Instantly share code, notes, and snippets.

Sebastian hrzbrg

Block or report user

Report or block hrzbrg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
#!/bin/bash -ue
# this script will attempt to detect any ephemeral drives on an EC2 node
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}')
hrzbrg / spotpricing.conf
Last active Nov 7, 2016
Logstash Config to parse SpotInstance Datafeed
View spotpricing.conf
# 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
hrzbrg /
Created Aug 25, 2015
A Zabbix script that will monitor Elasticsearch on a node. Updated and originally from here:
#!/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
#!/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.

Keybase proof

I hereby claim:

  • I am hrzbrg on github.
  • I am 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:

You can’t perform that action at this time.