1p can now be found at
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
TF_MODULES := $(shell find . -type f -iname '*.tf') | |
.PHONY: all plan apply | |
all: plan | |
plan: tf.plan | |
apply: tf.plan | |
terraform apply $< |
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
#!/usr/bin/env bash | |
# Usage: docker-ports [format] <dzen2-args...> | |
# | |
# Displays open docker ports using dzen2. | |
# | |
# Example: | |
# | |
# $ docker-ports -fn 'PragmataPro-9' -dock | |
format_ports() { |
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
#!/usr/bin/env bash | |
while [ $# -gt 0 ]; do | |
jq -nc --arg k "$1" --arg v "$2" '{($k): (try ($v|fromjson) catch $v)}' | |
shift; shift | |
done | jq -sc add |
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
" serial.vim | |
" Noel Cower | |
" | |
" Plugin to insert serial strings based on a local timestamp. | |
" | |
" For example: | |
" Serial 20181227100403 | |
" | |
" The above is this file's serial, inserted using :SerialUpdate. It can | |
" be updated with subsequent calls to :SerialUpdate. You can create |
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
#!/usr/bin/env bash | |
# FIXME: Names with non-ASCII characters can throw off alignment of | |
# columns. | |
usage() { | |
cat <<HELPTXT 1>&2 | |
git-wordiness [OPTIONS] | |
List general sums about commit messages (i.e., wc output). |
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
#!/usr/bin/env bash | |
# Copyright 2018 Noel Cower | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# |
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
#!/usr/bin/env bash | |
case "$1" in | |
-h|--help) | |
echo 'Usage: jsonkv [-h|--help] [--] KEY VALUE...' 1>&2 | |
exit 2 | |
;; | |
--) | |
shift | |
;; | |
esac |
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
#!/usr/bin/env bash | |
set -e | |
usage() { | |
echo 'Usage: gce-inventory [--help|--list|--host HOSTNAME]' 1>&2 | |
} | |
LIST_MODE=true | |
LOOKUP_HOST= |
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
#!/usr/bin/env bash | |
prog="$(basename "$0")" | |
## Defaults | |
# : ${FUP_BUCKET:=YOUR-BUCKET} | |
# : ${FUP_URL_PREFIX:=https://CUSTOM-URL/} | |
: ${FUP_PAR_UPLOAD_THRESHOLD:=100M} | |
: ${FUP_URL_PREFIX:=https://storage.googleapis.com/${FUP_BUCKET}/} |