Skip to content

Instantly share code, notes, and snippets.

View zloeber's full-sized avatar

Zachary Loeber zloeber

View GitHub Profile
@zloeber
zloeber / resume.json
Last active February 18, 2024 21:40
Zachary Loeber's Resume
{
"meta": {
"theme": "kendall"
},
"basics": {
"name": "Zachary Loeber",
"label": "Automation Engineer",
"image": "https://avatars.githubusercontent.com/u/4702624",
"email": "zloeber@gmail.com",
"phone": "630.730.1764",
#!/bin/bash
# Installs and configures a user syncthing deployment on Ubuntu
# Add the release PGP keys:
curl -s https://syncthing.net/release-key.txt | sudo apt-key add -
# Add the "stable" channel to your APT sources:
echo "deb https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
@zloeber
zloeber / gist:d01a6dde6bce82b216b6631d2ed0d612
Created April 6, 2020 03:45
Kubernetes Terraform App Deployment Brief Example
resource kubernetes_namespace deployment {
metadata {
name = var.namespace
}
}
// Example Secrets to expose as env vars in deployment
resource kubernetes_secret appsecrets {
metadata {
name = "appsecrets"
@zloeber
zloeber / minikube-up.sh
Created April 2, 2020 13:17
minikube-up.sh
#!/bin/bash
# Work around script to get minikube running on Ubuntu 19.10
# - Updates local firewall settings (ufw)
# - Whacks your local ./.kube and ./.minikube folders!
# - Runs sudo commands to get things running but does not require sudo to run thereafter
export MINIKUBE_WANTUPDATENOTIFICATION=false
export MINIKUBE_WANTREPORTERRORPROMPT=false
export MINIKUBE_HOME=$HOME
export CHANGE_MINIKUBE_NONE_USER=true
name: ado-var-group-sync
trigger:
batch: true
branches:
include:
- master
paths:
include:
- config/*
set -a
. "${SOURCEFILE}"
set +a
## ado-variable-group.yml
# Use az cli to update or create an ADO variable group like a crazy person
# sourceFile is a generic .env file with entries in VAR=VALUE format.
parameters:
sourceFile: ''
groupName: ''
overwrite: 'true'
adoProject: ''
adoOrg: ''
MYVAR=somevalue1
MYVAR2=somevalue2
# Login
az login --service-principal \
--username "${SPNAPPID}" \
--password "${SPNSECRET}" \
--tenant "${TENANTID}"
# Add the cli extension
az extension add --name azure-devops
# Profit!
count(kured_reboot_required) BY (instance) * ON (instance) GROUP_LEFT (node) kured_reboot_required > 0