Small shell scripts for various purposes:
add-dock-spacer: add spacers to the dock to make visually distinct groupsbundle-id: show the Bundle ID of a macOS appcitrix-cleanup: fix Citrix's annoying behavior to automatically run at startupcue-convert: convert an audio file with a structure given in a .cue file into separate filesdigest: a generic digest tool (think shasum) that optionally only prints files that have the same digest (useful for checking for duplicates)extract: extract compressed files of various formats (zip, rar, bz2, tar+...)find-apps: find macOS apps using mdfindjenkins-env: convert the (text) content of Jenkins's "Environment variables" page into commands that can be used to set the environmentjail-sh: run a shell inside a FreeBSD jailjson-merge-patch: Diff JSON files, or patch a JSON file with an existing diff,json-pretty: prettify JSON so that it is more human readablelegoman-dl: downloads and merges PDFs for Lego manuals based on a set IDmail-cleanup: Perform a sqlite vacuum on Mail's indexman-pdf: create a PDF out of a man page and show it in Previewobjc-attributesort: sorts Objective C property attributesplist-sort: sorts the keys of a plist fileprotoc-grpc: a wrapper aroundprotocthat adds the gRPC plugins to the toolpwd-finder: prints the path of the topmost Finder windowql: launch QuickLook on a fileqrm: remove the quarantine flag from a filerefresh-open-with: Updates the launch services database, eliminating dead or duplicate entries in the "Open With" menusimctl: callsxcrun simctlwith all parameters if you cannot remember that, and shows help for undocumented commandssudo-touchid-enable: enables the use of TouchID for sudo; this typically needs to be run after every system updatetag-pdf: Perform a fuzzy search on a given PDF file and tag itupdate-nib-colors: Replace literal colors in storyboards and xib files by named colorsuuniq: prints unique lines for unsorted sourcesxcode-cleanup: clean up unused or unnecessary Xcode filesxctdiff: call a diff tool on the output of a XCTAssertEqual for easier comparison
The following commands can be invoked via git <subcommand> as well as with git-<subcommand>.
git-deleted: prints all deleted and not yet commited files in the current repository. Optionally prints a regex that can be used for grepping the filenames somewerhe elsegit-duplicate: duplicates a git repository at a given location with all checked out branchesgit-refresh-tags: a shortcut forgit fetch --prune-tags --tags -f, updates tags that's references have changedgit-stats: prints statistics for commits of the current usergit-unlock: removes all .git/index.lock files that mdfind can find, and all in subdirectories of the home directorygit-update-author: replaces the author and/or committer e-mail address and name in a branch