Remove Duplicate Homebrew Apache launchd Service
If brew services start httpd succeeds but brew services list shows an error with root as the user, you likely have a leftover system LaunchDaemon from a previous sudo brew services invocation…
Limited availability — accepting new projects starting December 2026.
A companion to the Bash UUID rename snippet, this AppleScript is meant to be dropped into a "Run AppleScript" action inside the macOS Shortcuts app (or Automator as a Quick Action). It accepts the files passed in as input, generates a random lowercase UUID for each one, and renames the file in place while preserving the original extension — handy as a right-click service in Finder.
on run {input, parameters}
repeat with f in input
set posixPath to POSIX path of f
set ext to do shell script "basename " & quoted form of posixPath & " | sed 's/.*\\.//'"
set uuid to do shell script "uuidgen | tr '[:upper:]' '[:lower:]'"
set newName to uuid & "." & ext
tell application "Finder"
set name of (POSIX file posixPath as alias) to newName
end tell
end repeat
return input
end run
Set the shortcut’s input to "Files" and, if you want it in Finder’s context menu, enable "Use as Quick Action" → "Services menu" in the shortcut’s details.
If brew services start httpd succeeds but brew services list shows an error with root as the user, you likely have a leftover system LaunchDaemon from a previous sudo brew services invocation…
Quick snippet to switch a Git remote URL from HTTPS to SSH for easier authentication with SSH keys.
Quickly convert a PNG image to the modern WebP format using the cwebp CLI tool. This command sets the output quality to 80%, striking a good balance between file size and visual clarity…