I hereby claim:
- I am bdclark on github.
- I am bdclark (https://keybase.io/bdclark) on keybase.
- I have a public key whose fingerprint is C225 60CD B4CD A11C 5C06 4FDF 6F9E 1CD6 C7DE E7E3
To claim this, I am signing this object:
#!/usr/bin/env python | |
import argparse | |
import configparser | |
from shutil import which | |
import subprocess | |
import sys | |
import os | |
CONFIG_PATH = os.path.expanduser("~/.aws/config") |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
set -euf -o pipefail | |
# Set defaults, can be overriden with config_file (-f) | |
host="127.0.0.1" | |
port="3306" | |
user= | |
password= | |
excluded_dbs= # must be comma-delimeted, eg "mysql,test,innodb" | |
included_dbs= |
#cloud-config | |
coreos: | |
etcd2: | |
# generate a token from https://discovery.etcd.io/new?size=3 | |
discovery: https://discovery.etcd.io/<token> | |
advertise-client-urls: http://$private_ipv4:2379 | |
initial-advertise-peer-urls: http://$private_ipv4:2380 | |
listen-client-urls: http://0.0.0.0:2379 | |
listen-peer-urls: http://$private_ipv4:2380 |
#!/bin/bash | |
set -e | |
# | |
# git-mv-with-history -- move/rename file or folder, with history. | |
# | |
# Moving a file in git doesn't track history, so the purpose of this | |
# utility is best explained from the kernel wiki: | |
# | |
# Git has a rename command git mv, but that is just for convenience. | |
# The effect is indistinguishable from removing the file and adding another |
#!/usr/bin/env python | |
from __future__ import print_function | |
import requests | |
import sys | |
import json | |
def hipchat_notify(token, room, message, color='yellow', notify=False, | |
format='text', host='api.hipchat.com'): |
#!/usr/bin/env bash | |
set -e | |
usage() { | |
cat <<EOF | |
Usage: $0 H|D|W|M | |
Export ldif in gzip format, send to S3 bucket | |
Assumes bucket policy will handle file lifecycles |