No description
Find a file
Sami Samhuri fdb8415b21 Use physical footprint instead of RSS in mem-report
Summing ps RSS across processes overcounts shared memory: shared
read-only pages like the dyld shared cache and frameworks get charged
to every process that maps them. With 300+ iOS simulator daemons all
sharing those pages, the Simulator group reported ~34 GB when its real
cost is ~5 GB.

Switch the per-process metric to physical footprint (top's MEM column,
what Activity Monitor reports), joined with ps on PID for full command
names since top truncates them. Shared pages are now charged once and
the grouped sums stay under the system app-memory total.
2026-06-18 20:59:25 -07:00
.gitignore Add ose-deploy to gitignore 2026-05-11 14:35:49 -07:00
add-eac3-audio Add a script to add EAC3/DD+ audio to videos with only DTS 2025-12-11 16:52:35 +00:00
CLAUDE.md Add CLAUDE.md and Readme.md, remove lots of cruft 2025-06-06 10:17:36 -07:00
colours.rb Add CLAUDE.md and Readme.md, remove lots of cruft 2025-06-06 10:17:36 -07:00
convert-all-songs Add CLAUDE.md and Readme.md, remove lots of cruft 2025-06-06 10:17:36 -07:00
convert-song Add CLAUDE.md and Readme.md, remove lots of cruft 2025-06-06 10:17:36 -07:00
dfn Add @chockenberry's dfn script 2025-10-19 10:00:04 -07:00
diff-so-fancy Add diff-so-fancy 2022-03-11 00:44:52 -08:00
enable-sudo-touch-id Add CLAUDE.md and Readme.md, remove lots of cruft 2025-06-06 10:17:36 -07:00
finder-show-hidden-files Add CLAUDE.md and Readme.md, remove lots of cruft 2025-06-06 10:17:36 -07:00
generate-xcode-imageset Add svg-to-ios-pngs.rb, generate-xcode-imageset, find-unused-images, and PlistExlporer 2019-06-25 14:32:52 -07:00
git-conflicts support spaces in filenames in git-conflicts 2015-04-01 11:07:00 -07:00
git-diff-merge-conflict-resolution Add CLAUDE.md and Readme.md, remove lots of cruft 2025-06-06 10:17:36 -07:00
git-edit-conflicted-files Add CLAUDE.md and Readme.md, remove lots of cruft 2025-06-06 10:17:36 -07:00
git-large-files much better script for finding large files in git repos 2016-06-27 11:56:01 -07:00
git-open-in-github Remove a bunch of old, unused programs 2021-02-10 20:19:38 -08:00
git-remove-merged-branches Remove a bunch of old, unused programs 2021-02-10 20:19:38 -08:00
git-uncommit Use soft instead of mixed for git-uncommit 2019-10-21 12:33:33 -05:00
git-update Fix running git-update without any args 2025-11-24 14:16:47 -08:00
jj-rebase-check Add jj-rebase-check: flag bookmarks that conflict when rebased onto trunk 2026-06-15 17:49:34 -07:00
jsonugly Add CLAUDE.md and Readme.md, remove lots of cruft 2025-06-06 10:17:36 -07:00
make-bookmarklet added make-bookmarklet script (minifies, escapes, etc) 2010-08-10 13:32:11 -07:00
mem-report Use physical footprint instead of RSS in mem-report 2026-06-18 20:59:25 -07:00
photos-size-csv Add mem-report and photos-size-csv scripts 2026-03-29 16:03:41 -07:00
progress added ruby scripts to show progress of a piped command and contributors to a git project 2010-05-30 11:33:46 -07:00
Readme.md Add CLAUDE.md and Readme.md, remove lots of cruft 2025-06-06 10:17:36 -07:00
retina-scale Update retina-scale to handle fractions 2019-06-25 14:31:41 -07:00
roll Add CLAUDE.md and Readme.md, remove lots of cruft 2025-06-06 10:17:36 -07:00
save-keyboard-shortcuts.sh Add CLAUDE.md and Readme.md, remove lots of cruft 2025-06-06 10:17:36 -07:00
scale-app-icons Stop scaling 1x icons for iOS 2024-06-10 21:15:26 -07:00
screen-shell Add a script to run a program and then zsh -i 2025-01-10 21:20:31 +00:00
sd-before-copy Add CLAUDE.md and Readme.md, remove lots of cruft 2025-06-06 10:17:36 -07:00
serve Make serve support both python and python3 2025-11-24 14:16:47 -08:00
sri-integrity Add sri-integrity 2019-06-25 14:31:28 -07:00
youtube-snarf-audio Add CLAUDE.md and Readme.md, remove lots of cruft 2025-06-06 10:17:36 -07:00

bin

My personal collection of command-line utilities. Mostly git workflow stuff, but there's a bunch of other random tools that have accumulated over the years.

What's in here

These are shell scripts, Ruby utilities, and various other command-line tools that live in my PATH. I've been collecting them for ages - some date back to 2006 - and they handle the mundane tasks I got tired of doing manually.

The usual suspects:

  • Git workflow shortcuts (because who remembers those flag combinations?)
  • Image processing for app icons and retina displays
  • JSON manipulation and data analysis tools
  • System automation for macOS
  • Media conversion utilities

Most follow the Unix philosophy of doing one thing well, though some have grown a bit over time. The ones I still use regularly work reliably, but there are definitely some in here that haven't been touched in years and may or may not still function properly.

The collection