Skip to content

Instantly share code, notes, and snippets.

View mkhq's full-sized avatar

Mikael Högqvist Tabor mkhq

View GitHub Profile
@mkhq
mkhq / autopart.sh
Created October 28, 2016 09:56 — forked from trentmswanson/autopart.sh
Linux bash script to partition and format all data disks in azure
#!/bin/bash
# An set of disks to ignore from partitioning and formatting
BLACKLIST="/dev/sda|/dev/sdb"
# Base directory to hold the data* files
DATA_BASE="/media"
usage() {
echo "Usage: $(basename $0) <new disk>"
}
@mkhq
mkhq / kafka
Last active February 6, 2018 11:30 — forked from iandow/kafka
Simple Kafka Ubuntu init.d Startup Script
#!/bin/bash
DAEMON_PATH=/opt/kafka/
PATH=$PATH:$DAEMON_PATH/bin
# See how we were called.
case "$1" in
start)
# Start daemon.
echo "Starting Zookeeper";