I hereby claim:
- I am wilhelm-murdoch on github.
- I am wilhelm (https://keybase.io/wilhelm) on keybase.
- I have a public key ASBZm_maWfr3d882kURWC8C-i0iQFkBeuNWDtW2xi6sPxgo
To claim this, I am signing this object:
#!/usr/bin/env bash | |
set -eo pipefail | |
[[ -n "${VERBOSE}" ]] && set -x | |
read text | |
while [[ $index -lt "${#text}" ]]; do | |
swap=$(( $RANDOM % 10 )) |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
set -eo pipefail | |
[[ -n "${VERBOSE}" ]] && set -x | |
metadata() { | |
curl -s --connect-timeout 2 --fail "http://169.254.169.254/latest/meta-data/$*" | |
} |
#!/usr/bin/env bash | |
set -eo pipefail | |
[[ -n "${VERBOSE}" ]] && set -x | |
for region in $(aws ec2 describe-regions | jq -r '.Regions[].RegionName'); do | |
for sg in $(aws ec2 describe-security-groups --region="${region}" | jq -r '.SecurityGroups[].GroupId'); do | |
if [[ $(aws ec2 describe-network-interfaces --region="${region}" --filters Name=group-id,Values="${sg}" | jq -r '.NetworkInterfaces | length') -eq 0 ]]; then | |
echo "${sg} in ${region}" |
#!/usr/bin/env python | |
import ipaddr | |
accounts = { | |
'flood-beta': { | |
'public': [ | |
'10.1.32.0/20', | |
'10.1.96.0/20', | |
'10.1.160.0/20' |
Let's look at an example of how to launch a Kubernetes cluster from scratch on DigitalOcean, including kubeadm, an Nginx Ingress controller, and Letsencrypt certificates.
We'll be creating a four-node cluster (k8s-master, k8s-000...k8s-002), load balancer, and ssl certificates.
Gost - A simple command line utility for easily creating Gists for Github | |
Usage: | |
gost (--file=<file> | --clip) [--name=<name>] [--description=<description>] [--token=<token>] [--public] | |
gost (--help | --version) | |
Options: | |
-t --token=<token> Optional Github API authentication token. If excluded, your Gist will be created anonymously. | |
-f --file=<file> Create a Gist from file. | |
-n --name=<name> Optional name for your new Gist. |
Gost - A simple command line utility for easily creating Gists for Github | |
Usage: | |
gost (--file=<file> | --clip) [--name=<name>] [--description=<description>] [--token=<token>] [--public] | |
gost (--help | --version) | |
Options: | |
-t --token=<token> Optional Github API authentication token. If excluded, your Gist will be created anonymously. | |
-f --file=<file> Create a Gist from file. | |
-n --name=<name> Optional name for your new Gist. |
Gost - A simple command line utility for easily creating Gists for Github | |
Usage: | |
gost (--file=<file> | --clip) [--name=<name>] [--description=<description>] [--token=<token>] [--public] | |
gost (--help | --version) | |
Options: | |
-t --token=<token> Optional Github API authentication token. If excluded, your Gist will be created anonymously. | |
-f --file=<file> Create a Gist from file. | |
-n --name=<name> Optional name for your new Gist. |
/** | |
* Number Filter | |
* @Param input The number to format | |
* @Param fractionSize Nubmer of decimal places to round to; defaults to 2 | |
* @Param groupSep Number group separator; defaults to a single space ' ' | |
* @Param decimalSep Decimal place separator; defaults to single period | |
* @return string, ex: 1 234 345 | |
*/ | |
var DECIMAL_SEP = '.' // change to override default | |
var GROUP_SEP = ' ' // change to override default |