Skip to content

Instantly share code, notes, and snippets.

View BrianVia's full-sized avatar

Brian Via BrianVia

View GitHub Profile
@BrianVia
BrianVia / engagement-funnel-plan.md
Created June 19, 2026 19:21
Engagement Funnel Plan

Goal

For every push notification, the engagement funnel must nest strictly:

opened ≥ viewed ≥ engaged ≥ converted, where each stage is a subset of the prior — every viewer is an opener, every engager is a viewer, every converter is an engager.

Today the funnel is broken in two independent ways, both visible in live data:

viewed > opened — content is counted from organic visitors who never opened the push. The content query is scoped only by guideId/offerId/giftcardId + time window, not by who opened (queryEngagementForReport.ts:210-237). The doc’s audience-rewards guide: 5,685 viewed vs 1,076 opened. engaged > viewed — viewedContent and engagedContent are independent booleans set by different event types (queryEngagementForReport.ts:249-294); an offer.tappedShopOnline flips engaged without ever flipping viewed. Live cruise push (taskId e3c0526a) right now: engagedContent: 495 vs viewedContent: 292.

@BrianVia
BrianVia / printify rest api
Created May 27, 2026 12:44
printify rest API
# Products – Printify API Reference
Source: https://developers.printify.com/#image-properties
---
![Logo](images/logo-8fbbf816.svg)
# Automate your Print on Demand business
@BrianVia
BrianVia / super-scrutinize-skill.md
Created May 22, 2026 03:35
super-scrutinize — harsh structural code review skill (draft)
name super-scrutinize
description Harsh structural audit of a code change. Fight entropy. Find the load-bearing problems — file bloat, branching sprawl, layer violations, leaky abstractions, silent failures, type escape-hatches, DynamoDB access-pattern drift — before nitpicking style. Invoked as a Task subagent after a parent agent has collected the diff and changed-file contents.

Super-Scrutinize

You are a Task subagent doing a high-conviction structural review.

Your parent already ran git diff ...HEAD and read the full contents of every changed file. Both are pasted into your user message under labeled sections (### Git / diff output and ### Changed file contents). Do not spawn nested subagents. Do not re-read the repo unless the parent's bundle is genuinely insufficient — say so and stop if it is.

@BrianVia
BrianVia / brian-library.csv
Created April 30, 2026 18:54
Brian Via's Book Library (2,521 books)
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 10.
"Title","Author","Format","HasText"
"\03\06\00\0-\03\09\07\0\0","https://imagemagick.org ","pdf","false"
"!Influence_enhance","Unknown ","pdf","false"
"""Looks Good to Me""","Adrienne Braganza","epub","false"
"""Surely You're Joking, Mr. Feynman!"": Adventures of a Curious Character","Richard P. Feynman","epub","false"
"$100M Leads: How to Get Strangers To Want To Buy Your Stuff","Alex Hormozi","epub","false"
"$100M Offers: How To Make Offers So Good People Feel Stupid Saying No","Alex Hormozi","epub","false"
"(Palgrave Studies in Digital Business & Enabling Technologies) Theo Lynn, John G. Mooney, Jörg Domaschka, Keith A. Ellis - Managing Distributed Cloud Applications and Infrastructure_ A Self-Optimising","Unknown ","pdf","false"
"(Pragmatic programmers) chromatic - Modern Perl-Pragmatic Bookshelf_Pragmatic Programmers","Unknown ","pdf","false"
"+ Parallel and High Performance Programming with Python: Unlock Parallel and Concurrent Programming in Python using Multithreading, CUDA, Pytorch, and Dask","Fabio
@BrianVia
BrianVia / Cloudflare-services-overview.md
Created April 30, 2026 15:03
Cloudflare-services-overview

Cloudflare product glossary — snapshot as of April 29, 2026

I treated “product offering” broadly: named commercial products, platform primitives, managed features, and docs-indexed services. Cloudflare’s own wording frames this as a “connectivity cloud” with 60+ cloud services, and its product/docs directories split the estate across Compute, Storage, AI, Media, Network, SASE / Zero Trust, security, privacy, analytics, developer, and operations categories. 

One caveat: Cloudflare’s taxonomy is not clean. Some entries are SKUs, some are features, some are renamed products, and some are control-plane capabilities. I excluded the April 30, 2026 “agents can create accounts / buy domains / deploy” update because it postdates the requested April 29 snapshot. 

  1. The “big buckets” at a glance
@BrianVia
BrianVia / SKILL.md
Created April 10, 2026 18:34
babysit-pr skill
name babysit-pr
description Monitor a PR until it's mergeable — fix CI failures, address review comments, push fixes, repeat. Use when the user says "babysit this PR", "watch this PR", "keep this PR green", or "shepherd this PR to merge". Runs a built-in poll loop.
argument-hint [PR number or URL] [--interval=3m] [--max-cycles=20]
allowed-tools Bash(git *), Bash(gh *), Bash(npm run *), Bash(bun run *), Bash(npx *), Bash(prettier *), Bash(sleep *), Bash(curl *), Read, Grep, Glob, Edit, Write, AskUserQuestion

Babysit PR

You are a PR shepherd. Your job is to continuously monitor a pull request — fixing CI failures and addressing review feedback — until the PR is green and mergeable, or you hit a wall you can't solve alone.

ClaudeClaw Architecture Improvements

After cloning hermes-agent and studying both the PR (notify_on_complete for background processes) and the broader codebase, here are 10 architectural improvements for ClaudeClaw.

The PR adds a clean pattern: when terminal(background=true, notify_on_complete=true), the system auto-triggers a new agent turn when the process exits. No polling. The agent starts a background task, continues working, and gets automatically notified with the results when the process completes via a synthetic [SYSTEM: ...] message injected into the conversation.


1. Process Registry with Checkpointing

@BrianVia
BrianVia / tonal-movements.json
Created February 3, 2025 02:23
Tonal Movement Library
[
{
"id": "00000000-0000-0000-0000-000000000002",
"createdAt": "0001-01-01T00:00:00Z",
"updatedAt": "2022-12-15T22:17:08.172892Z",
"name": "Handle Move",
"shortName": "Handle Move",
"muscleGroups": [],
"inFreeLift": false,
"onMachine": true,
@BrianVia
BrianVia / hn-favorite-books
Created September 9, 2024 17:55
Hacker News Favorite Books
# Hacker News Favorite Books
## List of Books
List is sorted by title.
Sourced from this topic - [Show HN: I mapped HN's favorite books with GPT-4o](https://news.ycombinator.com/item?id=41473518).
I may receive a commission from purchases made via these URLs.
# Set the base image to Node 18
FROM node:18
# File Author / Maintainer
LABEL maintainer=your_email@gmail.com"
# Update the repository sources list
RUN apt-get update && apt-get upgrade -y
# Install Chromium