Skip to content

Instantly share code, notes, and snippets.

View zzstoatzz's full-sized avatar
🤕
sick

nate nowack zzstoatzz

🤕
sick
View GitHub Profile
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
"""
@zzstoatzz
zzstoatzz / transfer_animation.py
Created August 20, 2025 01:29
must be run from github.com/prefecthq/prefect (requires editable install of prefect)
#!/usr/bin/env -S uv run -q --with-editable .
# /// script
# dependencies = ["matplotlib", "networkx", "rich"]
# ///
"""Animation showing the Prefect transfer process as a DAG visualization."""
import argparse
import asyncio
import os
import sys
did:plc:o53crari67ge7bvbv273lxln
#!/usr/bin/env -S uv run --quiet --script
# /// script
# dependencies = ["prefect"]
# ///
"""
Asset management script for Prefect Cloud.
This script provides CRUD operations for managing assets in Prefect Cloud workspaces.
Assets are created automatically by Prefect when events are emitted, but this script