Skip to content

Instantly share code, notes, and snippets.

View zzstoatzz's full-sized avatar

nate nowack zzstoatzz

View GitHub Profile
{
"did": "did:plc:xbtmt2zjwlrfegqvch7fboei"
}
@zzstoatzz
zzstoatzz / tap_v0.1.4_nil_prevdata_mre.sh
Created January 26, 2026 21:36
MRE: tap v0.1.4 nil pointer dereference (firehose.go:184)
#!/bin/bash
# MRE: tap v0.1.4 nil pointer dereference when evt.PrevData is nil
# Bug: firehose.go:184 calls evt.PrevData.String() without nil check
# https://github.com/bluesky-social/indigo/blob/tap-v0.1.4/cmd/tap/firehose.go#L184
set -e
dir=$(mktemp -d)
trap "rm -rf $dir" EXIT
cd "$dir"
Grid of 16 album covers: The Dismemberment Plan - Emergency and I, Radiohead - OK Computer, Into It. Over It. - Proper, American Football - LP3, Geese - 3D Country, PUP - Morbid Stuff, A Wilhelm Scream - Partycrasher, Comeback Kid - Symptoms + Cures, Turnstile - Time & Space, Aesop Rock - The Impossible Kid, Grouper - Dragging a Dead Deer Up a Hill, Brian Eno - Ambient 1: Music for Airports, King Gizzard & The Lizard Wizard - Nonagon Infinity, Glassjaw - Worship and Tribute, Pavement - Crooked Rain Crooked Rain, Broken Social Scene - Broken Social Scene.
@zzstoatzz
zzstoatzz / oauth-experience.md
Created December 13, 2025 21:29
quickslice OAuth integration experience - missing sub claim in token response

quickslice OAuth integration: our experience

what we were trying to do

build a simple status app frontend that:

  1. uses quickslice as the backend (GraphQL API, OAuth, Jetstream ingestion)
  2. authenticates users via AT Protocol OAuth
  3. lets users set/view statuses stored as io.zzstoatzz.status.record records

we used the official quickslice-client-js SDK from the CDN to handle the OAuth flow (PKCE + DPoP).

@zzstoatzz
zzstoatzz / tap_consumer.py
Last active December 13, 2025 08:36
consume ATProto lexicon events from tap
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.12"
# dependencies = ["websockets", "rich"]
# ///
"""consume ATProto lexicon events from tap with formatted output.
automatically starts tap if not running.
usage:
# /// script
# requires-python = ">=3.10"
# dependencies = [
# "prefect>=3.0",
# "prefect-dbt>=0.7.9",
# "dbt-duckdb>=1.9",
# ]
# ///
"""
dbt + Prefect: Resume-from-Failure Demo
"""proof of concept: image moderation with pydantic-ai.
tests pydantic-ai's ability to analyze images and detect policy violations
with different policy strictness levels.
usage:
uv run sandbox/test_image_moderation.py
"""
import asyncio
@zzstoatzz
zzstoatzz / sync_status.py
Created September 8, 2025 05:31
syncs my global status to all 3rd party status (slack, github)
# /// script
# requires-python = ">=3.12"
# dependencies = ["aiohttp", "pydantic-settings"]
# ///
"""
Status Syndication Script
Syncs status from status.zzstoatzz.io to various third-party services
"""