Skip to content

Instantly share code, notes, and snippets.

@whitegerry
whitegerry / gas-town-simplified.md
Created March 3, 2026 15:31 — forked from jumploops/gas-town-simplified.md
Here’s Gas Town, stripped of the Mad Max slang and re-expressed as a fairly standard “multi-agent workflow/orchestration + Git-backed issue tracker” system.

Gas Town in one paragraph

Gas Town is a terminal-first orchestrator for running lots of coding-agent sessions in parallel (e.g., Claude Code and similar tools) without losing track of who is doing what. It does this by treating all work and agent state as entries in a Git-backed issue system called Beads, then assigning those work-items to persistent “agent identities” that can be resumed across many short-lived CLI sessions. A small set of supervisory agents continuously patrol, nudge, and merge work so that swarms of ephemeral workers can generate changes (merge requests) while a dedicated merge agent serializes integration into main. The user (human) acts like a product manager: create/route work, watch dashboards, and occasionally intervene when agents get stuck.


Translation glossary (Gas Town term → conventional meaning)

  • Beads → A lightweight, Git-versioned issue tracker / state store (issues stored as JSON lines committed to Git).
  • Town → The orchestrator “control pl
@whitegerry
whitegerry / xrdp-intel-setup.sh
Created November 5, 2023 15:02 — forked from Nexarian/xrdp-intel-setup.sh
Setup for Intel acceleration and XRDP
#!/usr/bin/env bash
set -e
sudo -v
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get autoremove -y
@whitegerry
whitegerry / cf-ddns.rsc
Created November 22, 2022 13:51 — forked from tophrr/cf-ddns.rsc
Mikrotik RouterOS Cloudflare Dynamic DNS Script
# Cloudflare Dynamic DNS update script
# Required policy: read, write, test, policy
# Add this script to scheduler
# Install DigiCert root CA or disable check-certificate
# Configuration ---------------------------------------------------------------------
:local TOKEN "__APITOKEN__"
:local ZONEID "__ZONEIDENTIFIER__"
:local RECORDID "__RECORDIDENTIFIER__"
:local RECORDNAME "__DNSRECORD__"
@whitegerry
whitegerry / gist:6fd803489660c838250ad073326d01f1
Created May 8, 2022 16:00 — forked from ehoppmann/gist:0b10bcaa1e793f757d1caddbd7ec2300
Notes for installing XorgXrdp and Xrdp with GLAMOR support
THIS ARE MY NOTES OF BUILDING AN INSTALLING XORGXRDP AND XRDP WITH GPU ACCELERATION
TESTED ON UBUNTU 20.04.2 with amdgpu (all-open variant) driver and FirePro W4100 GPU
-- Build XorgXrdp with GPU acceleration ("script" - to be adjusted to your needs) : --
## << BUILD AND INSTALL SCRIPT START >> ##
#!/bin/bash
# Install Latest XRDP with XORGXRDP
# README
#!/bin/bash
#
# This script is for Arch Linux to configure XRDP for enhanced session mode
#
# The configuration is adapted from the Ubuntu 16.04 script.
#
# Script adapted from https://github.com/microsoft/linux-vm-tools
#
@whitegerry
whitegerry / a-clash-tproxy-gateway.md
Created March 9, 2022 12:52 — forked from phlinhng/a-clash-tproxy-gateway.md
Clash as transparent proxy gateway via TPROXY

Notes

  1. If your local network use public IP ranges instead of private ones, make sure to add respecive RETURN rules to iptables to prevent looping issue
  2. Set clash as DHCP's only DNS server to allow domain-based filter (shunting) rules work
  3. Use lsof -i udp:53 to check if clash's DNS module work fine, otherwise you may have to kill systemd-resolved and any other processes occupying the UDP 53 port
  4. The given scripts will NOT hangle the traffic of gateway itself since it is not recommend to do so. If you want to redirect the egress traffic of the gateway, the following material may be useful

Reference

#!/bin/bash
PROXY_BYPASS_USER="proxy"
PROXY_BYPASS_CGROUP="0x16200000"
PROXY_SOCKS_SERVER="127.0.0.1:1080"
PROXY_FWMARK="0x162"
PROXY_ROUTE_TABLE="0x162"
PROXY_DNS_SERVER="127.0.0.1:1053"
PROXY_FORCE_NETADDR="198.18.0.0/16"
PROXY_TUN_DEVICE_NAME="clash0"