Skip to content

Instantly share code, notes, and snippets.

@colbyn
colbyn / output.md
Created February 15, 2026 05:31
chatbpt-io cli example

db-api/sql/migrations/2025-12-16--01--add_place_lat_long.up.sql:

-- db-api/sql/migrations/2025-12-16--01--add_place_lat_long.up.sql
BEGIN;

ALTER TABLE place
  ADD COLUMN IF NOT EXISTS latitude  DOUBLE PRECISION,
  ADD COLUMN IF NOT EXISTS longitude DOUBLE PRECISION;

DO $$
@colbyn
colbyn / output--clean-json--afr--1-ne--1.json
Created November 25, 2025 22:43
BOM chapter example in JSON
{
"uri": "/scriptures/bofm/1-ne/1",
"langCode": "afr",
"bookCode": "1-ne",
"chapterCode": "1",
"textDirection": "LTR",
"title": {
"mainTitle": "Die Eerste Boek van Nefi",
"subtitle": "Sy Heerskappy en Bediening"
},
@colbyn
colbyn / README.md
Created November 15, 2025 17:12
Open URL Lists Sequentially in Safari

URL Sequential Opener Scripts

This directory contains two Bash scripts for opening lists of URLs in Safari, one at a time, waiting for each window to be closed before proceeding to the next.

These tools are designed for workflows where you must manually inspect many pages without overloading history, CPU, or open tabs.


Scripts

@colbyn
colbyn / notes.md
Created October 21, 2025 20:09
The mental health industry is ripe for disruption.

The mental health industry is ripe for disruption. Traditional therapy relies on state-licensed professionals charging premium rates for one-on-one sessions, but much of it boils down to discussing the human condition: subjective experiences like loss, relationships, and personal growth. Why enforce rigid licensing boards and standardized treatments that haven’t evolved much since Viktor Frankl’s era in the mid-20th century? These one-size-fits-all approaches can’t address inherently personal issues. Instead, we need market-driven solutions: a gig economy platform where anyone can offer paid talking sessions, regulated by user reviews, reputation, and demand rather than bureaucracy.

State licensing makes sense for objective fields like evidence-based medicine or precision treatments. But for “pay to talk” services (where clients vent, seek advice, or process life’s mess) it’s overkill. Human responses to existence are subjective; there’s no universal right or wrong. Standardized protocols ignore this, leadin

@colbyn
colbyn / SystemicDoctrine.md
Last active August 30, 2025 02:10
Vibe Coded Notes — Doctrine of the Living System

Doctrine of the Living System


I. Foundations of System

  1. Every system is defined by its boundaries, stocks, flows, and feedbacks. To regulate, one must see the whole, not the part.
  2. Law of Requisite Variety: A regulator must contain as much variety as the disturbances faced. Capacity must equal disturbance.
  3. Feedback defines behavior. Reinforcing loops (R) amplify change; balancing loops (B) restrain it; delays (τ) obscure their power.
  4. Boundaries define behavior. To know what is inside and outside is to know what forces apply.
@colbyn
colbyn / README.md
Created June 24, 2025 17:19
My Automated FFMPEG hardware recoding setup (desktop screen capture + camera + multiple audio sources for redundancy) all muxed into a single master copy

🎥 Clean Multi-Input Capture on macOS

A set of dead-simple FFmpeg helper scripts for recording high-quality, synchronized video + audio streams directly into a clean, editable .mkv master file on macOS. Designed for screen walkthroughs, project documentation, and clean archival capture using built-in or external hardware.

🎙️ Why Record and Mux Multiple Raw Streams?

This project is built around a "clean master capture" philosophy:

📦 1. Everything in One File (Synchronized)

@colbyn
colbyn / check-hardware.sh
Created June 24, 2025 16:30
FFMPEG Video Recording Automation Scripts — 2025-6-24
#!/usr/bin/env bash
set -euo pipefail
# ffmpeg -encoders | grep -E 'hevc_videotoolbox|aac_at'
ffmpeg -encoders | grep -E 'hevc_videotoolbox|aac_at'
@colbyn
colbyn / Turn.swift
Created June 23, 2025 16:19
Turn Angles
import Foundation
/// A type-safe representation of an angle in full turns.
/// One full turn equals 360 degrees or 2π radians.
struct Turn: Hashable, Codable {
/// The raw value in full turns. 1.0 = 360° = 2π radians.
let value: Double
/// Creates a `Turn` from a value in full turns.
/// - Parameter value: The angle in full turns.
@colbyn
colbyn / ContentML-Copywriting-Design-Draft-V0.md
Created June 12, 2025 04:41
ContentML Copywriting Design Draft V0

What i'm doing with ContentML, in additional to the functionality as shown in WebCompiler is basically building a smart system to embed the timeless principles of copywriting right into the markup itself so the copy almost writes itself. It's like a digital assistant trained in classic advertising, working quietly behind the scenes to shape persuasive, audience-aware content every time you compile.

Provisioning LLM-Generated Content

This document describes the <provision> element in ContentML, which acts as a declarative hook for generating and embedding copywriting content via LLMs.

📘 Overview

The <provision> element specifies a placeholder within HTML that triggers one-time content generation during the provisioning phase. It uses the current context stack (inherited from surrounding <context> elements) along with a human-written prompt hint to generate copy for the site.

@colbyn
colbyn / H3-Resolution-Levels.md
Created March 6, 2025 23:28
H3 Resolution Levels

H3 Resolution Levels

Understanding Multi-Resolution Indexing and Hierarchical Structure in H3

H3 uses a hierarchical system where the world is divided into hexagonal cells at different resolutions, allowing for multi-resolution indexing.

1. Multi-Resolution Indexing (Resolutions 0 to 15)

  • Resolution 0: The entire world is divided into 122 base hexagons.
  • Higher resolutions (1-15): Each base hexagon is subdivided into smaller hexagons.
  • Resolution 15: The smallest possible hexagons.