View install-oracle-jdk.sh
#!/usr/bin/env bash
##
# Description:
#
# Automatically installs and configures Oracle JDK on Centos, OEL6, and OEL7.
#
if ! [[ "$(id -u)" = '0' ]] ; then
echo "\"$0\" must be run as root" 1>&2
View main.go
package main
import (
"context"
"flag"
"fmt"
"os"
"path/filepath"
"regexp"
"sync"
View kubernetes_k8s_cheatsheet_notes.md

Jay's Kubernetes K8s Cheatsheet Notes

Taints and tolerations

taints.tpl:

{{printf "%-50s %-12s\n" "Node" "Taint"}}
{{- range .items}}
    {{- if $taint := (index .spec "taints") }}
View aws-network-troubleshooting.md

Check a route path:

Start a container in --net=routed mode:

sudo docker run --rm -it --net=routed --ip-address=10.241.9.10 centos

vethrb31af40 = container network interface obtained from ip route output.

View react-unexpected-use-of-location.md
React: Unexpected use of 'location';

Solution: Use window.location instead of bare location.

View zookeeper-cleaner.sh
#!/usr/bin/env bash
##
# Useful reference and documentation material:
#
# https://zookeeper.apache.org/doc/r3.3.2/zookeeperAdmin.html#Ongoing+Data+Directory+Cleanup
set -o errexit
set -o pipefail
set -o nounset
View thrift-configure-mac-osx-20170504.md
View gitmodules-sorter.md
View chromium_socks5_sslnovalidate.md

First, download and install chromium (because running a browser with SSL verification turned off is insecure -- only use this browser for accessing mesos).

Window 1:

ssh -D 9999 <hostname>

Window 2:

View gist:258143c1eedfc72322bcadc117f362e6
```bash
open -a /Applications/Chromium.app \--args --proxy-server=socks5://127.0.0.1:9999 --host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE 127.0.0.1" --ignore-certificate-errors
```