Skip to content

Instantly share code, notes, and snippets.

View andrewwippler's full-sized avatar
:shipit:
Shipping Things

Andrew Wippler andrewwippler

:shipit:
Shipping Things
View GitHub Profile
@andrewwippler
andrewwippler / 365_day_reading.csv
Created December 22, 2023 06:40
Bible Reading Plan (86 verses a day)
Date Morning Evening Summary
January 1 Genesis 1:1 - Genesis 2:12 Genesis 2:13 - Genesis 4:6 Genesis 1:1 - Genesis 4:6
January 2 Genesis 4:7 - Genesis 5:23 Genesis 5:24 - Genesis 7:12 Genesis 4:7 - Genesis 7:12
January 3 Genesis 7:13 - Genesis 9:9 Genesis 9:10 - Genesis 10:23 Genesis 7:13 - Genesis 10:23
January 4 Genesis 10:24 - Genesis 12:2 Genesis 12:3 - Genesis 14:7 Genesis 10:24 - Genesis 14:7
January 5 Genesis 14:8 - Genesis 16:5 Genesis 16:6 - Genesis 18:5 Genesis 14:8 - Genesis 18:5
January 6 Genesis 18:6 - Genesis 19:15 Genesis 19:16 - Genesis 21:2 Genesis 18:6 - Genesis 21:2
January 7 Genesis 21:3 - Genesis 22:11 Genesis 22:12 - Genesis 24:10 Genesis 21:3 - Genesis 24:10
January 8 Genesis 24:11 - Genesis 24:53 Genesis 24:54 - Genesis 25:29 Genesis 24:11 - Genesis 25:29
January 9 Genesis 25:30 - Genesis 27:3 Genesis 27:4 - Genesis 27:46 Genesis 25:30 - Genesis 27:46
@andrewwippler
andrewwippler / Dockerfile
Last active November 27, 2018 18:45
Docker-izing WordPress for Kubernetes
FROM php:7.2-fpm-alpine
# docker-entrypoint.sh dependencies
RUN apk add --no-cache \
# in theory, docker-entrypoint.sh is POSIX-compliant, but priority is a working, consistent image
bash \
sed \
rsync \
nginx
@andrewwippler
andrewwippler / ubuntu-single-node-k8s-AWS.sh
Created June 8, 2018 21:34
Single node kubernetes cluster on AWS (with ECR)
apt-get update
apt-get upgrade -y
apt-get update && apt-get install -y apt-transport-https curl
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb http://apt.kubernetes.io/ kubernetes-xenial main
EOF
apt-get update
apt-get install -y kubelet kubeadm kubectl docker.io
@andrewwippler
andrewwippler / switch-k8s-namespace.sh
Created April 10, 2018 12:30
script to switch to a new kubernetes namespace.
#!/bin/bash
kubectl config set-context $(kubectl config current-context) --namespace=$1
# Run: /path/to/switch-k8s-namespace.sh something
# This prevents appending `-n something` to every kubectl command.
@andrewwippler
andrewwippler / install kubeadm kubelet kubectl
Last active April 8, 2021 08:46
Installing kubernetes on CentOS 7 minimal (needs to be initialized after run)
# update and install ntp
yum update -y
yum install ntp -y
systemctl enable ntpd --now
# Install crictl, for Cri-o, but did not work with k8s 1.10 as of yet.
curl -L -O https://github.com/kubernetes-incubator/cri-tools/releases/download/v1.0.0-beta.0/crictl-v1.0.0-beta.0-linux-amd64.tar.gz
tar xvf crictl-v1.0.0-beta.0-linux-amd64.tar.gz
# mv crictl /usr/local/bin/crictl
@andrewwippler
andrewwippler / centos_kickstart
Created April 2, 2018 15:14
Kickstart file for installing centos 7 on nve ssd and uefi
# Install OS instead of upgrade
install
# Keyboard layouts
keyboard 'us'
# Root password
rootpw --iscrypted $1$UzchDaR4$XXXXXXXXXX.XXXXXXX/
# System language
function _kube_ns() {
KUBE=`kubectl config view --minify --output 'jsonpath={..namespace}'`
if [ ! "${KUBE}" == "default" ]
then
echo "⎈ ${KUBE}"
else
echo ""
fi
}

Keybase proof

I hereby claim:

  • I am andrewwippler on github.
  • I am andrewwippler (https://keybase.io/andrewwippler) on keybase.
  • I have a public key whose fingerprint is 6496 C632 CB28 4AD7 281C CA27 0CF1 04EB FB3E 1D75

To claim this, I am signing this object:

@andrewwippler
andrewwippler / Centos_6_or_7.sh
Created April 17, 2015 22:15
Join Centos 6 to Domian
#!/bin/bash
NETBIOS="$1"
FQDN="$2"
USER="$3"
#install files
sudo yum -y install authconfig krb5-workstation pam_krb5 samba-winbind oddjob-mkhomedir nscd
#create auth settings
authconfig --enablecachecreds --enablewinbind --enablewinbindauth --smbsecurity=ads --smbworkgroup=$NETBIOS --smbrealm=$FQDN --enablewinbindusedefaultdomain --winbindtemplatehomedir=/home/$NETBIOS/%U --winbindtemplateshell=/bin/bash --enablekrb5 --krb5realm=$FQDN --enablekrb5kdcdns --enablekrb5realmdns --enablelocauthorize --enablemkhomedir --enablepamaccess --updateall