Skip to content

Instantly share code, notes, and snippets.

@henrik242
henrik242 / airtag-to-gpx-sync.sh
Last active April 19, 2025 20:26
Read AirTag data from the FindMy.app cache and convert to GPX
#!/usr/bin/env bash
#
# Reads AirTag data from the FindMy.app cache and converts it to a daily GPX file
#
# Rsyncs the data to a web accessible folder that can be displayed with e.g.
# https://gist.github.com/henrik242/84ad80dd2170385fe819df1d40224cc4
#
# This should typically be run as a cron job
#
@henrik242
henrik242 / Global macOS hotkeys for Google Meet, Spotify and others using AppleScript and Fastscripts.md
Last active April 9, 2025 22:39
Global macOS hotkeys for Google Meet, Spotify and others using AppleScript and Fastscripts
@henrik242
henrik242 / run-script-on-startup.command
Last active March 26, 2023 02:06
Run shell command in background upon macOS login, using tmux
#!/usr/bin/env bash
#
# Make this file executable with `chmod +x run-script-in-background.command`, and add it to
# System Preferences --> Users and Groups --> Startup Items. It needs to have the `.command` suffix.
#
tmux new-session -d -s ostepop \; send -t ostepop.0 "echo Let\'s do this\!; echo More stuff." ENTER

Disable Device Enrollment Notification on Mac.md

Restart the Mac in Recovery Mode by holding Comment-R during restart

Open Terminal in the recovery screen and type

csrutil disable