This gist is a restore recipe for an AI coding agent. If the user says "look at this gist and restore it" (or similar), do exactly the steps in Installation below on their machine. Do not improvise — recreate the two files verbatim, then load and verify the agent.
Keep Handy always running on macOS (launchd + AppleScript)
Created: 2026-08-18 Tags: macos, launchd, launchagent, keepalive, autostart, autorestart, applescript, handy, always-on, background-service
This setup ensures Handy is always running on macOS.
If the app crashes or is accidentally closed, it will automatically restart.
Unlike open -a, this method avoids stealing focus every time Handy launches.
Keywords: qBittorrent macOS, sequential download, Download in sequential order, torrent added hook, Run external program, WebUI API, LaunchAgent, launchd, Keychain, toggleSequentialDownload.
When qBittorrent adds a torrent, automatically enable Download in sequential order for that torrent.
This is an event-driven qBittorrent WebUI hook. It does not poll, run a background daemon, or require a macOS LaunchAgent.
If Codex, Claude, or another MCP client reports that playwright, context7, next-devtools, or another MCP server timed out during startup, do not increase the startup timeout first.
A common root cause is that the Node.js runtime used to launch npx cannot validate the TLS certificate from the npm registry. The MCP server has not even started yet: npx is waiting on npm metadata or retrying a failed HTTPS request.
Typical symptoms:
MCP client for `playwright` timed out after 30 seconds
How to create a Free-tier Aiven PostgreSQL 18 service using the avn CLI (when it's missing from the web UI)
Last verified: 2026-07-25 Tags: Aiven, PostgreSQL 18, Aiven CLI,
avn, free tier, free-1-1gb, preview version, managed Postgres, database provisioning TL;DR: As of this writing, Aiven's web console only lets you pick PostgreSQL up to version 17 on the Free plan, because PG 18 is still taggedpreview. The Aiven CLI has no such restriction — you can create a Free PostgreSQL 18 service directly withavn service create.
Aiven's Free plan (free-1-1gb) is normally created through the web console, but the console's version picker only offers PostgreSQL versions that Aiven has promoted out of preview status. At the time of writing, PostgreSQL 18 is available but still marked preview, so it does not show up as a selectable option in the UI — even though the underlying platform fully supports provisioning it.
Scenario: local recording only (no streaming). Source — macOS Screen Capture (Apple ScreenCaptureKit), full-display capture.
If you were handed this gist, apply the settings below to the user's OBS config:
~/Library/Application Support/obs-studio/basic/profiles/<Profile>/basic.ini~/Library/Application Support/obs-studio/basic/scenes/.json
Fixes openai/codex#28224.
Codex writes millions of TRACE-level rows per day to ~/.codex/logs_2.sqlite via insert-and-prune churn, rapidly consuming SSD write endurance.
block-logs-trigger.sh— watcher scriptcom.codex.block-logs-trigger.plist— macOS LaunchAgent
| // ==UserScript== | |
| // @name Swappa Font Awesome Fix (Embedded Original Fonts) | |
| // @namespace https://github.com/Lysak | |
| // @version 2026-06-17 | |
| // @description Uses locally embedded Swappa Font Awesome webfonts to bypass Cloudflare font challenges | |
| // @author Dmytrii Lysak | |
| // @match https://swappa.com/* | |
| // @match https://*.swappa.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=swappa.com | |
| // @run-at document-start |
| httrack "https://example-2026.localhost/" \ | |
| -O "example-2026.localhost" \ | |
| -%v \ | |
| --robots=0 \ | |
| -%P \ | |
| -n \ | |
| -F "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36" |