mirror of
https://github.com/samsonjs/bin.git
synced 2026-06-24 04:49:05 +00:00
No description
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. |
||
|---|---|---|
| .gitignore | ||
| add-eac3-audio | ||
| CLAUDE.md | ||
| colours.rb | ||
| convert-all-songs | ||
| convert-song | ||
| dfn | ||
| diff-so-fancy | ||
| enable-sudo-touch-id | ||
| finder-show-hidden-files | ||
| generate-xcode-imageset | ||
| git-conflicts | ||
| git-diff-merge-conflict-resolution | ||
| git-edit-conflicted-files | ||
| git-large-files | ||
| git-open-in-github | ||
| git-remove-merged-branches | ||
| git-uncommit | ||
| git-update | ||
| jj-rebase-check | ||
| jsonugly | ||
| make-bookmarklet | ||
| mem-report | ||
| photos-size-csv | ||
| progress | ||
| Readme.md | ||
| retina-scale | ||
| roll | ||
| save-keyboard-shortcuts.sh | ||
| scale-app-icons | ||
| screen-shell | ||
| sd-before-copy | ||
| serve | ||
| sri-integrity | ||
| youtube-snarf-audio | ||
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
- colours.rb - Convert between color formats (hex, RGB, UIColor)
- convert-all-songs - Batch convert audio files to different formats
- convert-song - Convert single audio file to different format
- diff-so-fancy - Enhanced git diff output with better formatting (source)
- enable-sudo-touch-id - Enable Touch ID authentication for sudo commands
- finder-show-hidden-files - Toggle visibility of hidden files in Finder
- generate-xcode-imageset - Generate Xcode imageset from @2x and @3x images
- git-conflicts - List files in merge conflict state
- git-diff-merge-conflict-resolution - Show diff for merge conflict resolution
- git-edit-conflicted-files - Open all conflicted files in editor
- git-large-files - Find largest objects in git repository pack files
- git-open-in-github - Open current repo/branch in GitHub web interface
- git-remove-merged-branches - Delete merged branches from remote repository
- git-uncommit - Undo the last commit (soft reset)
- git-update - Update and rebase current branch from remote with stash management
- jsonugly - Minify JSON by removing whitespace
- make-bookmarklet - Convert JavaScript code to bookmarklet format
- progress - Add progress indicators to piped data streams
- retina-scale - Scale images for 1x, 2x, and 3x display densities
- roll - Random choice selector from command line arguments
- save-keyboard-shortcuts.sh - Export macOS keyboard shortcuts to file
- scale-app-icons - Generate iOS and macOS app icons at all required sizes
- screen-shell - Screen session management utility
- sd-before-copy - Pre-backup script for SuperDuper! to run Vortex backup system
- serve - Start simple HTTP server (default port 8080)
- sri-integrity - Generate Sub-Resource Integrity hashes for external resources
- youtube-snarf-audio - Extract audio from YouTube videos