You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shell, Python, and Perl scripts I wrote/use on a daily basis;
i.e. eating my own dog food.
Quick overview by category
The summary/index below was generated by local AI (DSv4 Flash);
keep in mind that many utilities below are probably WAY out of date...
Use your own judgement about them - that is, check whether they fit
your own needs before using them.
Mostly, this repo establishes a common baseline in any machine I work in;
a baseline that I've muscle-memoried over the years.
Even if none of the utilities below are useful to you, the approach itself - i.e.
building a publicly accessible arsenal you can 'git clone' at a moment's notice...
that is definitely recommended :-)
Shared argument parser for isolate.sh / pi.isolated.sh (sourced, not standalone)
Example usage of isolate.sh to isolate vim (note that this is just a generic example of isolation, for isolating vim in particular, vimisolated.sh is much better):
# Read-only $HOME, no network
isolate.sh -- vim ~/bin/pi.sh
# Allow specific servers, make some paths writable, hide SSH keys from any vim-spawned subprocesses (Language servers, etc)
isolate.sh --rw ~/bin --rw ~/.viminfo --hide ~/.ssh \
--servers servers.txt --dns 1.1.1.1 -- vim ~/bin/pi.sh
# ...so I built vimisolated.sh - auto-mapping of r/w folders, etc
vimisolated.sh ~/bin/pi.sh
Example usage of isolated pi.dev harness:
# Assumes a local LLM at localhost:8081
pi.isolated.sh [--port PORT] [isolate.sh options] [-- pi options]
Interactive pi TUI against Google AI Studio through pi.isolated.sh -- read-only $HOME, egress only to localAI/google-servers.txt; key from ai.google.key
dstat-real/dstat (formerly dagwieers/dstat, which redirects there) -- archived, last commit 2020-06-18; the original homepage dag.wieers.com now answers HTTP 500. This copy is upstream master plus Python-3 compatibility fixes only (shebang, collections.abc, raw-string regex literals). The still-maintained Python-3 fork is scottchiefbaker/dool.
Matthew Wozniski's AnsiHighlight-based vimcat, mirrored at vim-scripts/vimcat; actively maintained successor: ofavre/vimcat. The file is a bash wrapper that sources itself as Vim script (vim:ft=vim).
BSD (per the file header, which asks to be credited)
Client for the Nu HTML checker, defaulting to http://html5.validator.nu/. It sends a User-Agent, which that Jetty-based service requires (it answers 400 Bad Request without one). Only http:// endpoints are supported -- --service=https://... exits with 7.