Skip to content

Instantly share code, notes, and snippets.

**PROMPT FOR LLM (copy+paste below, then append your plan)**
You are converting a **generic plan of action** into a **production-ready research/engineering `todo.md`** that is directly executable by a capable coding agent. Your output must be a single Markdown document with a fenced **XML `<workflows>`** block. Do **not** include any extra commentary, explanations, or chat—**output only the document**.
### Transformation requirements
* Be **specific** and **operational**. Replace vague goals with concrete steps, commands, checklists, acceptance gates, and explicit assumptions.
* Prefer **compact, high-signal prose**. No filler. Use short paragraphs and terse bullets.
* If information is missing, make **minimal, clearly labeled assumptions** (e.g., “Assumption: …”). Do **not** ask questions.
* Compile the spec into **executable oracles**: pre/postconditions, invariants, consumer/provider API contracts, and **metamorphic properties**. Generate both tests and **runtime guards**.
@keithchambers
keithchambers / -h | --help
Created January 28, 2025 03:34
YouTube Transcript Downloader
usage: yt-transcript-downloader.py [-h] [-k KEY] [-v VIDEO] [-c CHANNEL] [-p PLAYLIST] [-s SEARCH] [-o {relevance,date,rating,views}] [-m MAX_SIZE] [-a AGE]
Download YouTube transcripts and metadata in YAML format,
with an optional max YAML file size limit.
options:
-h, --help show this help message and exit
-k KEY, --key KEY YouTube API Key to use. Overrides YOUTUBE_API_KEY env variable if not set.
-v VIDEO, --video VIDEO
YouTube Video ID or URL
@hxii
hxii / README.md
Last active August 22, 2025 16:36
My Miniflux CSS

My Custom CSS for Miniflux

This are just a couple of handy, opinionated visual fixes that I personally use in my self-hosted instance of Miniflux.

You're more than welcome to grab a copy and use with your own instance, or modify to suit your needs.

@varenc
varenc / studio_display_catalina_fix.md
Last active June 22, 2023 01:50
Fix Studio Display apps freezing macOS 10.15 Catalina (Chrome, Zoom, WhatsApp, Discord, etc)

tl;dr; Run sudo launchctl stop com.apple.cmio.VDCAssistant to unfreeze your apps while using a Studio Display on macOS Catalina.


If you try to use Apple's new Studio Display on macOS Catalina 10.15.7 you end up with horrible app freezing problems. Apps like Chrome, Discord, WhatsApp, Zoom, Messenger, etc, are all freezing once a Studio Display is plugged in.

As someone pointed out on this thread, the "VDCAssistant" process seems to the source of the problems. This process is just related to managing video cameras for Apple services. And apparently disabling it fixes the app freezing issue!

So to fix the issue, just temporarily disable VDCAssistant by running this command in a Terminal:

@larsenv
larsenv / pbskids.py
Last active August 3, 2025 02:09
PBS Kids Video Downloader
import json
import requests
import subprocess
import re
home = requests.get("https://content.services.pbskids.org/v2/kidspbsorg/home/").text
home = json.loads(home)
shows = {}
episodes = {}
@gruber
gruber / tot.sh
Last active November 9, 2024 22:41 — forked from chockenberry/tot.sh
A shell script for Tot
#!/bin/bash
# Fork of CHOCK's original tot.sh to add support for dot "0" to target
# the first empty dot.
# https://gist.github.com/chockenberry/d33ef5b6e6da4a3e4aa9b07b093d3c23
#
# 2 Mar 2020
# + Incorporated suggestions from ShellCheck (https://www.shellcheck.net).
# Thanks to Ramsey Dow.
# + Changed call to `python` to `/usr/bin/python` to get Python 2, avoiding
@kamui545
kamui545 / dock.sh
Created October 24, 2019 03:37
Customize macOS dock via command line
#!/usr/bin/env bash
source "./dock_functions.sh"
declare -a apps=(
'/System/Applications/Utilities/Terminal.app'
'/System/Applications/Music.app'
'/Applications/Google Chrome.app'
'/Applications/PhpStorm.app'
'/Applications/Visual Studio Code.app'
@mbleigh
mbleigh / README.md
Last active June 25, 2025 18:44
Firebase Hosting Fetch All Files

Fetch All Files from Firebase Hosting

This script fetches all of the files from the currently deployed version of a Firebase Hosting site. You must be signed in via the Firebase CLI and have "Site Viewer" permission on the site in question to be able to properly run the script.

Running via NPX

npx https://gist.github.com/mbleigh/9c8680cf319ace2f506f57380da66e7d <site_name>
@andrewpetrochenkov
andrewpetrochenkov / mac-dock.sh
Last active May 20, 2025 19:18
macOS Dock scripts #mac
#!/usr/bin/env bash
# list apps
defaults read com.apple.dock persistent-apps | grep '"_CFURLString"' | awk -F'"' '{print $4}' | php -R 'echo urldecode($argn)."\n";' | sed -e 's/file:\/\///g' | sed -e 's/\/$//g'
# list folders
defaults read com.apple.dock persistent-apps | grep '"_CFURLString"' | awk -F'"' '{print $4}' | php -R 'echo urldecode($argn)."\n";' | sed -e 's/file:\/\///g' | sed -e 's/\/$//g'
# add app
path=/Applications/Automator.app
@maxboeck
maxboeck / donottrack.js
Last active November 6, 2023 10:00
Check "Do Not Track" Client Hint
const allowsTracking = () => {
const dnt =
window.doNotTrack ||
navigator.doNotTrack ||
navigator.msDoNotTrack
if (dnt === 1 || dnt === '1' || dnt === 'yes') {
return false
}
if ('msTrackingProtectionEnabled' in window.external) {
return !window.external.msTrackingProtectionEnabled()