Skip to content

Instantly share code, notes, and snippets.

View colbyn's full-sized avatar

Colbyn colbyn

View GitHub Profile
@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 / Webmaster-Agency-Notes.md
Created June 19, 2025 02:24
Webmaster Agency Notes

Oh now I understand what’s on your mind, I myself have come to the same conclusion but it was just speculation. Yes, I’m definitely interested. I apologize, while I’m always interested in discussing new ideas with strangers, when someone anonymously reaches out to me without providing much context or background, I don’t know what to expect so I take it very casually until I find out who I’m talking to on the other end. I also have a lot on my mind at this time, there’s this local contractor offering $60K annually for someone to manage their online site, which in my mind was such a technically simple problem, without also being too time consuming that it got me thinking about possibly scaling things up, starting my own agency and working with many such clients. Although, I may have a tendency to over complicate the problem, in my mind the web dev / webmaster space is very saturated, its not the early 2000’s anymore, its mature and I’ve thinking hard about fundamental value differentiation. What can I do that c

@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 / dont-squander-potential.md
Created March 7, 2025 05:18
Don’t squander potential | The post that got me banned from r/SuicideWatch

To the OP,

You should consider yourself lucky—without knowing the details—you may have been given second chance, a new lease on life, and so I hope you can find a new and more meaningful path in life. Many a time those who try in one way or another irreparably damage their bodes which only compounds their state of mental anguish. Again, perhaps you’ve been given a second chance and perhaps too you should consider devoting your time and energy to the service of others, or towards some higher ideal. 

To everyone else,

This sub can be quite dark. I guess such is the nature of this but sometimes I don’t know if people on where are real or not—potentially burying those posts from people who are in a crisis and there’s only so many people on here willing to donate their time to console those in such a state… I suppose there’s no knowing either way, my extended family was completely blindsided when a young woman committed such an act. Personally it’s a topic I’m very sensitive about. 

**Consider the foll

@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.
@colbyn
colbyn / decline-american-cities-notes.md
Created February 28, 2025 04:41
Conversation History Notes on the Decline of American Cities

Are there any books on the history of American cities as they relate to community life? And perhaps their decline as well?

Absolutely — there’s a whole shelf’s worth of fascinating books on American cities, especially exploring how community life developed, flourished, and in many cases, unraveled. Here’s a mix of classics and more recent works that dive into both the social fabric of cities and the forces that shaped their rise and decline:

On Community Life + How Cities Functioned

  • The Death and Life of Great American Cities by Jane Jacobs (1961)
    The blueprint for thinking about cities as living, breathing ecosystems of people. Jacobs champions the importance of sidewalks, neighborhoods, and informal community ties — the very elements that make cities thrive.

  • The Origins of the Urban Crisis: Race and Inequality in Postwar Detroit by Thomas J. Sugrue (1996)

@colbyn
colbyn / excerpts.md
Created February 24, 2025 20:37
Excerpts from “Intentional Communities: Today’s Social Laboratories” By Geoph Kozeny

Excerpts from “Intentional Communities: Today’s Social Laboratories” By Geoph Kozeny

…For many, “intentional community” is synonymous with the hippie communes of the '60s, but that notion is extremely misleading--the '60’s communes were just one large blip in a long and impressive history of intentional communities. The fact is, efforts to create new lifestyles based on lofty ideals have been with us for thousands of years.

Although the earliest humans are thought to have lived in clans or tribes, they were probably just "doing what came natural" rather than consciously designing a social structure. However, by the 6th Century BC, Buddha's followers began living in ashrams--communities intentionally designed to foster an orderly, productive, spiritual life. Community, also known as the "sangha," is one of Buddhism’s core teachings, and represents the most longstanding form of intentional community on record.

However, in spite of their criticisms of the status quo, most intentional communities tha

@colbyn
colbyn / example.swift
Last active January 13, 2025 01:57
Finalize Swift iterators into a given type
fileprivate func example() {
func wantsArray(array: [Int]) {
print("given:", array.debugDescription)
}
func wantsContiguousArray(array: ContiguousArray<Int>) {
print("given:", array.debugDescription)
}
let valuesIterator: IndexingIterator<Array<Int>> = [1, 2, 3, 4, 5, 6].makeIterator()