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:
[ | |
{"US":"United States"}, | |
{"CA":"Canada"}, | |
{"AF":"Afghanistan"}, | |
{"AL":"Albania"}, | |
{"DZ":"Algeria"}, | |
{"DS":"American Samoa"}, | |
{"AD":"Andorra"}, | |
{"AO":"Angola"}, | |
{"AI":"Anguilla"}, |
#!/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' |
#!/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}" |
I hereby claim:
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 )) |
#!/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/$*" | |
} |
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.
/** | |
* 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 |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Blue Component</key> | |
<real>0.16470588743686676</real> | |
<key>Green Component</key> | |
<real>0.20784313976764679</real> |
from pymongo import MongoClient | |
import datetime | |
import bunch | |
from faker import Faker | |
from random import choice | |
client = MongoClient(host="localhost", port=27017) | |
faker = Faker() | |
posters = [] |