Skip to content

Instantly share code, notes, and snippets.

View nathanblair's full-sized avatar
:octocat:
The SHHAaaaAAAA #️⃣👽

Nathan Blair nathanblair

:octocat:
The SHHAaaaAAAA #️⃣👽
View GitHub Profile
@nathanblair
nathanblair / lima.yml
Last active November 11, 2025 22:32
Minimal alpine with rootless buildit
minimumLimaVersion: 2.0.0
vmType: vz
arch: aarch64
cpus: 6
memory: 24 GiB
disk: 20 GiB
# The built-in containerd installer does not support Alpine currently.
# Use a provisioning script to install containerd, buildkit, and nerdctl.
@nathanblair
nathanblair / main_loop.go
Last active February 21, 2022 03:02
Create an interruptible, scheduled event loop in go
import (
"log"
"os"
"os/signal"
"syscall"
"time"
)
// registers a channel for handling an program kill/interrupt signal
func RegisterInterruptHandler() (interrupt chan os.Signal) {