Skip to content

Instantly share code, notes, and snippets.

@HauptJ
HauptJ / wsl-kernel-headers.sh
Created January 21, 2026 20:48
WSL Ubuntu Compile and Install Kernel with Kernel Headers
#!/usr/bin/env bash
set -e
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
user=josh
version=$(uname -r)
@HauptJ
HauptJ / cluster.tfvars
Last active January 21, 2026 00:38
KubeSpray cluster.tfvars for OpenStack with Master and all Nodes with floating IPs
# your Kubernetes cluster name here
cluster_name = "test-cluster"
# list of availability zones available in your OpenStack cluster
#az_list = ["nova"]
# SSH key to use for access to nodes
public_key_path = "~/.ssh/.pub"
# image to use for bastion, masters, standalone etcd instances, and nodes
@HauptJ
HauptJ / ko_install.sh
Created January 18, 2026 21:52
Bash script to install Ko on Linux
#!/usr/bin/env bash
set -e
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
version=0.18.1
bin_name=ko
@HauptJ
HauptJ / containers.conf
Created January 15, 2026 20:26
Fedora 43 WSL Config Fix for KIND with Podman - /etc/containers/containers.conf
[containers]
pids_limit = 65536
[network]
firewall_driver="iptables"
@HauptJ
HauptJ / ansible-install.yml
Last active January 19, 2026 21:33
Shebanged Ansible Playbook to install K8s Operator dev tools
#!/usr/bin/env ansible-playbook
---
- name: Install K8s Operator Reqs
hosts: localhost
become: true
vars:
pre_task_pkgs:
- make
- jq
@HauptJ
HauptJ / ppa_install.sh
Last active January 15, 2026 18:54
Bash script to install packages on Ubuntu with APT PPA repos
#!/usr/bin/env bash
set -e
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
declare -A pkg_map
pkg_map["ansible"]="ppa:ansible/ansible"
@HauptJ
HauptJ / kind_install.sh
Last active January 18, 2026 21:55
Bash Script to Install KIND
#!/usr/bin/env bash
set -e
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
bin_name=kind
// you can also use imports, for example:
import java.util.Arrays;
// you can write to stdout for debugging purposes, e.g.
// System.out.println("this is a debug message");
class Solution {
public int solution(int[] A) {
int res = 1;
// Implement your solution here
@HauptJ
HauptJ / sendMeetInvite.js
Created November 29, 2025 03:45
Send Google Meet Invites from Google Form spreadsheet entries
const GLOBAL_EVENT_ID_CELL = "E2";
const GLOBAL_TZ = "America/Chicago";
const GLOBAL_TZ_MOD = "-06:00";
function initMeeting(calendarId, eventReqId, eventOwner, eventName, eventStart, eventEnd, eventDesc) {
try {
if(calendarId == null || eventReqId == null || eventOwner == null || eventName == null || eventStart == null | eventDesc == null) {
throw "Required parameneters not present"
}
var attendees = [{email: eventOwner}];
@HauptJ
HauptJ / configWSL.ps1
Created November 22, 2025 22:22
PowerShell script to configure WSL and install distros
#Requires -RunAsAdministrator
param (
[string[]] $optDistros = @("Ubuntu-24.04"),
[string[]] $optConfigs = @("[wsl2]", "networkingMode=mirrored")
)
function updateWSLConfig {
Param(