Skip to content

Instantly share code, notes, and snippets.

View brennanMKE's full-sized avatar

Brennan Stehling brennanMKE

View GitHub Profile
@brennanMKE
brennanMKE / README.md
Last active September 9, 2026 00:16
memtop — a memory TUI for macOS in one file of stdlib Python

memtop

A memory TUI for macOS, in one file of stdlib Python. It answers the question Activity Monitor makes you work for: what is actually eating my RAM right now, and is it getting worse?

memtop

Why

@brennanMKE
brennanMKE / README.md
Created August 23, 2026 05:37
Ornith 1.5 Experiment

Ornith 1.5 Agentic Coding Evaluation

Date: 2026-08-22 Task: build an npm-style semver range matcher from a spec, incrementally, with a test suite Verdict: passed everything specified — 13/13 — with one latent crash outside the test cases


Setup

@brennanMKE
brennanMKE / README.md
Created August 13, 2026 17:49
CLI Tools for AI Coding Agents on macOS

CLI Tools for AI Coding Agents on macOS

AI coding agents such as Claude Code, OpenCode, Codex, and local-model agents frequently use command-line tools to inspect repositories, search code, process structured data, run tests, and understand changes.

This guide installs a useful set of modern CLI tools on macOS using Homebrew.

Prerequisites

@brennanMKE
brennanMKE / README.md
Last active August 13, 2026 06:26
Claude using LM Studio for Local AI

Claude Code + LM Studio Launcher

A small Zsh script for running Claude Code with a local model hosted by LM Studio.

The script automatically:

  1. Finds the model currently loaded in LM Studio.
  2. Configures the environment variables needed for Claude Code to use LM Studio's Anthropic-compatible API.
  3. Launches Claude Code using the loaded model.
  4. Passes any additional command-line arguments through to Claude Code.
@brennanMKE
brennanMKE / README.md
Created July 11, 2026 06:15
Proxying FlaschenTaschen over a public host with WireGuard

Proxying FlaschenTaschen over a public host with WireGuard

A transparent UDP proxy for [FlaschenTaschen] displays behind a network that blocks device-to-device traffic (client isolation, NAT, or both). Common at venues like OpenSauce, where the WiFi won't let attendees reach the FT host directly.

The goal: attendees keep using the existing FT protocol (UDP to port 1337, PPM frames). No new client software, no browser app, no protocol changes. They just send to a public IP instead of a local one.

@brennanMKE
brennanMKE / README.md
Created October 9, 2025 15:18
Swift Testing: A Practical Guide

Swift Testing: A Practical Guide

This guide shows how to adopt the Swift Testing framework in Swift 6 projects, with a focus on Swift Concurrency. It also covers organizing tests using suites, groups, and tags.

Targets: Swift 6 language mode, Xcode 16+, Testing framework (import Testing)


1) Getting Started

@brennanMKE
brennanMKE / README.md
Created September 10, 2025 20:46
Swift on AL2023 using Docker

🚀 Why Docker for Swift on AL2023?

  • AL2023 has no official Swift toolchain → library mismatches, no RPM packages.
  • Docker solves this by running Swift in a compatible Ubuntu userland (or nightly images) while still using the host’s Linux kernel.
  • Overhead is tiny → CPU/memory nearly native, only extra disk space for images.

🛠 Step 1: Install Docker on AL2023

@brennanMKE
brennanMKE / README.md
Last active August 13, 2025 07:23
Continue with local models

Continue with local models

Configured for Qwen3 Coder 30B with LM Studio.

  • ~/.continue/config.yaml
@brennanMKE
brennanMKE / Swift6-0.md
Created August 9, 2025 03:41
Swift 6.0, 6.1 and 6.2

Here’s a practical list of Swift Evolution proposals implemented in Swift 6.0 (the initial 6.0 release), each with a tiny demo you can paste into a Swift 6 project. I pulled the proposal statuses directly from the Swift Evolution repo to keep this tight and accurate.

Function + macro system / language usability

SE‑0415: Function body macros — generate function bodies at compile time. ([GitHub][1])

@freestanding(expression)
macro time<T>(_ body: () -> T) -> T = #externalMacro(module: "MyMacros", type: "TimeMacro")
@brennanMKE
brennanMKE / README.md
Created August 7, 2025 17:49
Swift 6 LLM Primer

Swift 6 LLM Primer

Generated by ChatGPT for use with LLMs which have not yet been trained on Swift 6.