Skip to content

Instantly share code, notes, and snippets.

@simbo1905
simbo1905 / diff_my_zebra.md
Last active April 29, 2026 11:09
Diff My Zebra — a delta + git config love letter

Diff My Zebra — a delta + git config love letter

You know that moment when you open a 500-line PR at 2am and it's just a wall of red and green? You can't tell if the code moved or if it actually changed. Yeah. We've all been there.

The Problem

  • Default git diff treats moved code as delete here, add there — 200 lines of churn for a simple refactor.
  • No line numbers, so when the test fails at runtime.py:223, you're counting hunks like a Victorian clerk.

The Solution: delta

@simbo1905
simbo1905 / functional_fetchers_vanillajs_uv.md
Created April 27, 2026 12:39
Functional fetchers with vanilla JS, uv, JTD, and typed views

Emit Views, Validators, And Functions

A small sketch for typed functional fetchers with Python, Postgres, JTD, and vanilla JavaScript

Abstract

The clean way to serve browser screens from a Python API is not to start from a frontend framework, a backend framework pattern, or a generic client registry. It is to start from the data shape that crosses the wire.

@simbo1905
simbo1905 / README.md
Last active April 27, 2026 04:20
arc2lintimports - turn Sonargraph .arc architecture boundaries into import-linter pyproject.toml contracts

🏛️ arc2lintimports — Architecture Latin For Python Imports

What If Your Architecture File Actually Meant "Nope"?

You know that moment when a repo has tidy folders called frontend, backend, contracts, and build... and then someone imports build from production code because the file was right there?

Yeah. The folder names were never the boundary.


@simbo1905
simbo1905 / BENCHMARKS.md
Last active June 4, 2026 23:20
GenAI Test File Summarisation In Chunks With Ollama Or Cloud

Transcript Summary Benchmarks

These results are anonymised. The source was one transcript split into overlapping chunks.

Input chunk set

Chunk Characters Tokens
video_transcript00.log 11001 2053
video_transcript01.log 11001 2089
@simbo1905
simbo1905 / probe_ollama_model.py
Last active April 12, 2026 08:50
Probe an Ollama model for generate/chat/thinking support with version safety checks
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "ollama>=0.1.0",
# ]
# ///
"""Probe an Ollama model and log what it supports using the local API.
This script requires `uv` to be on the path.
@simbo1905
simbo1905 / README.md
Created April 9, 2026 04:25
Ollama Tool Calling Benchmark - Lua vs Python vs Bash (MIT License - Simon Massey 2026-04-09)

MIT License - Copyright (c) 2026-04-09 Simon Massey

🚀 We Got Ollama's gemma4:26b Doing Tool Calls! (And Benchmarked the Hell Out of It)

Date: 2026-04-09
Author: Simon Massey
License: MIT


The Mission

@simbo1905
simbo1905 / functional_composition_in_python.md
Last active April 27, 2026 11:58
Typed functional composition in Python for contract-driven pipelines

Emit Functions, Not Frameworks

A truer account of typed functional composition for contract-driven Python

Abstract

The clean way to build Open Data Contracts defined Python pipelines is not to start from a framework, a registry, or a mutable runtime context. It is to start from the actual computation.

@simbo1905
simbo1905 / diagnostic-law.md
Created March 28, 2026 14:55
Diagnostic law and invariants

Diagnostic Law

The path to effortless systems begins before debugging.

You do not get 無為 from clever incident response. You get it by designing a system whose intended shape can still be recognised when it is under stress.

That means designing with invariants.

An invariant is not a test assertion and not a hopeful comment. It is a truth the system is built to preserve.

@simbo1905
simbo1905 / create_shared_group_macos.sh
Created February 27, 2026 20:53
Generate a new macOS group above a given GID and populate it with specified users
#!/usr/bin/env sh
#
# create_shared_group.sh GROUPNAME MINGID USER [USER ...]
#
# Example:
# ./create_shared_group.sh datameshsolutions 1234 simon consensussolutions
# POSIX sh: no fancy arrays, use positional parameters
if [ "$#" -lt 3 ]; then
printf 'Usage: %s GROUPNAME MINGID USER [USER ...]\n' "$0" 1>&2
@simbo1905
simbo1905 / gux-rfc.md
Last active February 25, 2026 17:07
GUX: GUI UX Description Language

GUX: GUI UX Description Language

RFC Draft 0.2 · February 2026

Status

Draft. Public comment invited.

Abstract