Find Dirty Git Repositories
A tiny shell script that recursively scans a directory for Git repositories with uncommitted changes, nicknamed dirgit—a play on words combining "directory", "dirty", and "git".
Limited availability — accepting new projects starting June 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.
A tiny shell script that recursively scans a directory for Git repositories with uncommitted changes, nicknamed dirgit—a play on words combining "directory", "dirty", and "git".
A simple Bash script that renames all .png files in the current directory using randomly generated lowercase UUIDs. It ensures uuidgen is installed before execution and skips renaming if no…
When working with feature branches, it’s easy for your local repository to accumulate branches that were already deleted on the remote. This snippet safely removes all local branches whose…