Skip to content

Instantly share code, notes, and snippets.

View api_backends.conf
upstream warehouse_inventory {
zone inventory_service 64k;
upstream warehouse_pricing {
zone pricing_service 64k;
koaps / git-clearHistory
Created Apr 26, 2021 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
View git-clearHistory
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin<YOUR ACCOUNT>/<YOUR REPOS>.git
View Raspberry Pi 4 Arm64 Kernel

The Raspberry Pi foundation have now released a beta version of an official 64-bit Kernel which can be installed using the rpi-update script. The rpi-update script can be found at or through the Raspbian repositories


The objective of these instructions is to build a stock 64bit Linux Kernel for use on the Raspberry Pi 4B on a Debian x64 machine (Windows Subsystem for Linux in my case), and deploy on the Raspberry Pi.


  • Transfer to Pi is using my NAS in this example, replace with shared drive/memory stick etc. as required.
    • (N: drive on Windows and /mnt/NAS on Linux in this example).
  • For a specific Kernel version replace the 4.19 with the wanted version in the git clone command.
    • Greater than 3GB RAM only currently available on Kernel 4.19
koaps /
Created Feb 16, 2021 — forked from xenophonf/
K3s on Ubuntu 20.04 with root on encrypted ZFS
# Run as user `ubuntu` from the Ubuntu Desktop installer's live environment.
sudo apt-add-repository universe
sudo apt update
passwd ubuntu
sudo apt install --yes openssh-server screen vim
ip addr show scope global | grep inet
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
koaps / makefile
Last active Apr 23, 2019
Local Dev
View makefile
ALL_ACTIONS := build up down clean
ALL_TARGETS := proxy
actions := $(strip $(if $(DO_A), $(DO_A), up))
targets := $(strip $(if $(DO_T), $(DO_T), $(ALL_TARGETS)))
koaps /
Last active Dec 2, 2018
Git Stuff

Git notes and commands

Author reset

git filter-branch --env-filter 'if [ "$GIT_AUTHOR_EMAIL" = "koaps" ]; then;
koaps / Vagrantfile
Created Oct 22, 2018
Vagrant ZFS example
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Specify minimum Vagrant version and Vagrant API version
Vagrant.require_version '>= 1.9.1'
# Require 'yaml' module
require 'yaml'