Skip to content

Instantly share code, notes, and snippets.

View andrewrynhard's full-sized avatar

Andrew Rynhard andrewrynhard

View GitHub Profile
@andrewrynhard
andrewrynhard / chmod.sh
Created July 3, 2017 16:08
Fixes file and directory permissions to the default.
find . -type d -print0 | xargs -0 chmod -v 0755
find . -type f -print0 | xargs -0 chmod -v 0644

Keybase proof

I hereby claim:

  • I am andrewrynhard on github.
  • I am andrewrynhard (https://keybase.io/andrewrynhard) on keybase.
  • I have a public key ASAG3nQn738131r-Oui-kuJ0Jj1EFOolClvRQHnSFLN4ZAo

To claim this, I am signing this object:

@andrewrynhard
andrewrynhard / bird.yaml
Last active October 31, 2020 16:33
Networking configuration for my home setup.
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: bird
namespace: kube-system
labels:
app: bird
spec:
selector:
matchLabels:
docker run -d -p 5000:5000 \
-e REGISTRY_PROXY_REMOTEURL=https://registry-1.docker.io \
--restart always \
--name registry-docker.io registry:2
docker run -d -p 5001:5000 \
-e REGISTRY_PROXY_REMOTEURL=https://k8s.gcr.io \
--restart always \
--name registry-k8s.gcr.io registry:2
@andrewrynhard
andrewrynhard / Added
Last active December 3, 2020 19:24
Rock64
CONFIG_IRQ_FASTEOI_HIERARCHY_HANDLERS=y
+CONFIG_PREEMPT=y
+CONFIG_PREEMPT_COUNT=y
+CONFIG_PREEMPTION=y
+CONFIG_SCHED_THERMAL_PRESSURE=y
+CONFIG_PREEMPT_RCU=y
+CONFIG_TASKS_RCU_GENERIC=y
+CONFIG_TASKS_RCU=y
+CONFIG_RT_GROUP_SCHED=y
+CONFIG_KALLSYMS_ALL=y
---
# Source: cilium/templates/cilium-agent-serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: "cilium"
namespace: kube-system
---
# Source: cilium/templates/cilium-operator-serviceaccount.yaml
apiVersion: v1
apiVersion: v1
kind: Namespace
metadata:
name: nginx
---
apiVersion: v1
kind: Pod
metadata:
name: nginx
spec:
apiVersion: v1
kind: ServiceAccount
metadata:
name: external-dns
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: external-dns
rules: