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".
Currently accepting new projects and available for hire.
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 alongside the user LaunchAgent. Remove the system daemon to resolve the conflict.
brew services stop httpd || true
sudo brew services stop httpd || true
sudo launchctl bootout system /Library/LaunchDaemons/homebrew.mxcl.httpd.plist 2>/dev/null || true
sudo rm -f /Library/LaunchDaemons/homebrew.mxcl.httpd.plist
brew services cleanup
brew services start httpd
After this, brew services list should show httpd as started under your user.
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".
If you've made changes to a file and want to discard them, you can use git checkout to restore it to the version from the last commit. This is useful when you want to undo changes that haven't…
Quick snippet to switch a Git remote URL from HTTPS to SSH for easier authentication with SSH keys.