View k8s-gigawatt-messed-up-subnetting-networking-workaround.md

Initial symptoms

Kubernetes master setup went fine, but when I tried to join a kbminion slave node:

Checking whether docker can run container ...
Checking iptables default rule ...
View zfs-on-oracle-linux-7.md

Installing ZFS on Linux on Oracle Linux 7

We're going to add ZFS support to our Oracle Linux installation. We'll just add the ZFS on Linux Repo, verify the binary signature from GitHub, install the files, ensure the driver loads properly, and verify that it's functional. We'll save things like array creation for another document.

This is mostly a transcription of the process from the CentOS/RHEL ZoL installation manual.

Install the repo file

Add the ZFSonLinux repo and verify the fingerprint.

Note — manual fingerprint verification is atypical but we'll do it anyway just for kicks.

View log4j2.properties
status = error
dest = err
name = PopertiesConfig
property.logDir = /var/log/elasticsearch
appender.console.type = Console
appender.console.name = STDOUT
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] %marker%m%n
View iTerm2Tips.go
package main
import (
"bufio"
"fmt"
"io"
"io/ioutil"
"os"
"regexp"
"strconv"
View name_generator.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Inspired by https://stackoverflow.com/a/5732034/293064
"""
import random
input_text = '''
View ._dotfiles_README.md

My common Linux dotfiles

Download all files individually to current directory via:

curl -sS --remote-name-all $( \
    curl -sS https://api.github.com/gists/a402aaa2b0065fb91709b1a28e6990c4 \
        | jq -r '.files[].raw_url' \
)
View awk_prefix_seconds_elapsed.md
( for i in $(seq 1 5); do echo $i ; sleep $i ; done ) \
| gawk 'BEGIN { since = systime() } { printf "%-7s", (systime() - since) "s" ; print }'

Output:

View set_or_append_java_config.sh
function set_or_append_java_config() {
local FILE=$1
local KEY=$2
local VALUE=$3
if grep -q "^${KEY}=" "${FILE}"; then
sed -i -e "s#^\\(${KEY}=\\).*"'$'"#\\1${VALUE}#" "${FILE}"
else
echo "${KEY}=${VALUE}" >> "${FILE}"
fi
View install-nodejs.sh
#!/usr/bin/env bash
##
# Description:
#
# Automatically installs and configures node.js.
#
if ! [[ "$(id -u)" = '0' ]] ; then
echo "\"$0\" must be run as root" 1>&2
View delete-from-v2-docker-registry.md

One liner for deleting images from a v2 docker registry

Just plug in your own values for registry and repo/image name.

registry='localhost:5000'
name='my-image'
curl -v -sSL -X DELETE "http://${registry}/v2/${name}/manifests/$(
    curl -sSL -I \
        -H "Accept: application/vnd.docker.distribution.manifest.v2+json" \