Shell Utilities

A mixed catalog of small shell utilities for everyday development, infrastructure, and command-line work.

Jump to: Shell scripting · Text & data · Web & HTTP · DNS & networking · File operations · Security & auth · Git · macOS · Salesforce B2C Commerce · Meta

Each row's primary link opens the doc; the script link opens the raw script.

Shell scripting

Tool Description
prompt · script Sourced interactive prompt with default value, placeholder, and Ctrl-C safety
progress · script Single-line progress bar with percentage completion

Text & data

Tool Description
tsd · script Paste any number, get back a timestamp or a duration (auto-detected)
inflate · script Adjust historical USD amounts for inflation (what was $X in YEAR worth today?)
stats · script Count, total, average, range, and outliers from integers on stdin
colorize-url · script Apply distinct ANSI colors to URL components for readability
render-md · script Render markdown to HTML and open it in your browser (Node-based — see notes)
convert-size · script Convert file sizes between SI (1000-based) and binary (1024-based) units
baseconv · script Convert a number between numeral bases (binary, octal, decimal, hexadecimal)

Web & HTTP

Tool Description
pin-dns · script curl wrapper that overrides DNS resolution for a hostname without touching /etc/hosts
curl-timing · script Time HTTP requests and compare URLs head-to-head with IQR-aware outlier detection
httpcode · script Quick HTTP status code lookup — standard codes plus Cloudflare, nginx, and IIS non-standard codes, all offline
chrome-ua · script Print a realistic Chrome User-Agent from the local install or Google's live API
slow-server · script Local HTTP server that responds after a configurable delay, for testing timeout logic

DNS & networking

Tool Description
cf-ddns · script Update a Cloudflare DNS A record to match this machine's current outbound IP
spf-find-ip · script Recursively search SPF records to see if a given IP can send mail for a domain
cf-ips-subnets · script Expand Cloudflare IPv4 ranges into /16 or /24 subnets for picky firewalls
dkim-pubkey · script Extract the base64-encoded public key from a DKIM DNS record

File operations

Tool Description
explode · script Move a directory's contents up one level and remove the empty directory (fixes nested-folder unzips)
snippet · script Extract lines between start and end patterns, with built-in trimming to exclude the marker lines
swap · script Atomically swap two files by renaming
bak · script Back up a file in place by appending .bak (rotates recursively so the single-.bak is always most recent)
unbak · script Inverse of bak: restore file.ext.bak to file.ext

Security & auth

Tool Description
genpw · script Generate random passwords or strings with configurable length, charset, and exclusions
pkce · script Generate a PKCE code verifier and its SHA256 challenge for OAuth2 authorization flows
client-credentials · script Fetch an OAuth2 access token via the client_credentials grant (defaults tuned for SFCC, works against any token URL)

Git

Tool Description
git-backup · script Push tracked + untracked changes to a timestamped remote branch, then restore local state
git-add-nonsub · script Stage a git repository inside another git repository without treating it as a submodule

macOS

Tool Description
notify · script Show a macOS notification via osascript (useful when long-running commands finish)
screenshot-rename · script Rename macOS screenshots from the verbose default format to a clean timestamp-only name
install-bash · script Install the latest Bash from Homebrew and set it as your login shell

Salesforce B2C Commerce

Tool Description
s · script sfcc-ci wrapper with shortcuts, enhanced output, and human-readable token expiration
generate-p12 · script Generate a PKCS#12 client certificate for B2C staging code uploads that require mTLS
dot-project · script Generate .project files for B2C cartridge directories so Eclipse-based tooling picks them up
verify-p12 · script Smoke-test WebDAV /Cartridges access with Bearer or Basic auth, with optional .p12 mTLS
propfind-p12 · script WebDAV PROPFIND with Bearer token + .p12 client cert + CA validation against a specific code version
dw-jwt · script Generate an RS256-signed JWT for authenticating to B2C APIs via OAuth2 client credentials
find-zone-by-name · script Page through the SCAPI zones/info endpoint to find a CDN zone by name substring
ods-usage · script Calculate On-Demand Sandbox credits used from an ODS API response
gen-catalog · script Generate SFCC catalog XML (base products, variants, relationships) for seeding sandboxes or QA
pwa-prereqs · script Check or install PWA Kit development prerequisites on macOS (Xcode CLT, Homebrew, nvm, Node LTS)

Meta

Tool Description
get · script Install scripts from this catalog into a directory on your $PATH

Notes