Skip to content

Instantly share code, notes, and snippets.

View jon-hotaisle's full-sized avatar

Jon Stevens jon-hotaisle

View GitHub Profile
@jon-hotaisle
jon-hotaisle / AirPlay.scpt
Created January 16, 2026 21:56
I have a Mac mini connected to my TV, with HomePods as the speakers. Every time the mini goes to sleep, the audio connection drops, and I manually re-select the HomePods. This script fixes that by automatically re-selecting the AirPlay device. Hook it up to run at login (or wake), and the problem disappears. 100% vibe-coded with Claude.
#!/usr/bin/osascript
on run argv
if (count of argv) is 0 then
set deviceName to "Living Room"
else
set deviceName to item 1 of argv
end if
tell application "System Events"
@jon-hotaisle
jon-hotaisle / biome.jsonc
Created September 13, 2025 05:33
biome.jsonc for use with ultracite.ai
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"extends": ["ultracite"],
"formatter": {
"indentStyle": "tab",
"indentWidth": 4,
"lineWidth": 80
},
"javascript": {
"formatter": {