Skip to content

Instantly share code, notes, and snippets.

View avoidwork's full-sized avatar

Jason Mulligan avoidwork

View GitHub Profile
@avoidwork
avoidwork / openclaw.json
Created April 30, 2026 11:56
openclaw + vllm + docker config
{
"gateway": {
"controlUi": {
"allowInsecureAuth": true,
"dangerouslyDisableDeviceAuth": true,
"allowedOrigins": [
"http://localhost:18789",
"http://127.0.0.1:18789",
"http://10.1.2.20:18789",
"http://containers.lan:18789"
@avoidwork
avoidwork / openclaw-opencode-gotham-stacks.md
Created April 10, 2026 12:18
OpenClaw driving OpenCode to manage Gotham Stacks (k8s manifests)

🔧 Gotham Stack Deployment Version Update

Use the opencode-coding-agent skill to work with the gotham-stacks repository on the opencode LXC.

Task:

  1. SSH to LXC using: ssh -i /home/node/.openclaw/workspace/ssh-keys/opencode-lxc jason@10.1.2.8
  2. Navigate to ~/projects/gotham-stacks on the LXC
  3. Create a unique feature branch from the updated default branch (main/master):
    • Branch name format: feature/deployment-version-update-YYYY-MM-DD-HHMM
  • Example: feature/deployment-version-update-2026-04-09-1800 (6:00 PM run)
@avoidwork
avoidwork / gotham-stacks-cron.json
Created April 10, 2026 11:56
Gotham Stacks management
{
"id": "8dd5cd4a-6dc2-41f6-a37f-a7fca4255b72",
"name": "Gotham Stack Deployment Version Update - 4x Daily",
"description": "Scan k8s deployment manifests in gotham-stacks repo and update container versions to latest verified available versions",
"enabled": true,
"schedule": {
"expr": "0 */6 * * *",
"kind": "cron",
"tz": "America/Toronto"
},
@avoidwork
avoidwork / SKILL.md
Last active April 11, 2026 13:04
OpenClaw skill for OpenCode
name opencode-coding-agent
description SSH-based access to opencode TUI coding agent in a remote container. Supports TUI mode, non-interactive run mode, server/attach patterns, and full CLI command set. Use when the user wants to delegate coding tasks to an opencode instance running remotely. Workflow: SSH into host, cd to projects/<repo>, create feature branch from updated default branch, launch opencode (TUI or run mode), execute coding instructions, commit with conventional prefix + signature, and push to GitHub. NEVER commit to default/main branch.

Opencode Coding Agent

SSH-based access to an opencode TUI (terminal user interface) coding agent running in an LXC container.

Environment Variables

@avoidwork
avoidwork / gist:e91370855bb0334f0eecedfe341c1e31
Created June 8, 2024 19:10
Resize the LVM to use available space
sudo lvextend -r -l +100%FREE /dev/template-vg/root
@avoidwork
avoidwork / gist:0c5170900146c936b29b5e0de4c87921
Last active March 25, 2025 23:55
Debian 12 nvidia drivers (apt/sources.list)
# Disable SecureBoot in UEFI for kernel module to load
# add options to primary
non-free contrib
# add source
deb https://ftp.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware
@avoidwork
avoidwork / .txt
Last active December 19, 2023 11:44
debian nvidia
$ vi /etc/apt/sources.list
# add [contrib], [non-free] to [main] line
deb http://deb.debian.org/debian/ bookworm main non-free-firmware contrib non-free
$ LINUX_HEADERS=$(uname -r)
$ apt update
$ apt -y install nvidia-driver firmware-misc-nonfree linux-headers-$LINUX_HEADERS dkms
# default [nouveau] driver is disabled
$ cat /etc/modprobe.d/nvidia-blacklists-nouveau.conf
# You need to run "update-initramfs -u" after editing this file.
@avoidwork
avoidwork / gist:79bc09046b403d2ab1ee9e8e853ee8ad
Last active April 10, 2023 00:27
intel gpu transcoding in plex and ubuntu with celeron n5105
sudo tee /etc/modprobe.d/i915.conf <<EOF
options i915 enable_guc=2
EOF
sudo update-initramfs -u
sudo apt install intel-gpu-tools
sudo apt install ocl-icd-libopencl1 intel-opencl-icd
(reboot)
@avoidwork
avoidwork / gist:001d8a8188eed63e906262dcb7275b29
Created February 26, 2023 17:32
Docker volume with bind to folder
$ docker volume create --driver local \
--opt type=none \
--opt device=/home/user/test \
--opt o=bind \
test_vol
function hyphenize (arg = '') {
return arg.match(/([a-z]{1,2})/ig).join('-');
}