I'm keeping shared scripts in bin_common
, so I can reserve ~/bin
for machine-specific scripts (similar to why I have ~/.zshrc_common
and ~/.zshrc
).
Add ~/bin_common
to the$PATH
manually.
Assumes zsh
is the current shell and /bin_common
is symlinked to ~/bin_common
:
cat >> "$HOME/.zshrc" << 'EOF'
# See https://github.com/bbkane/dotfiles
export PATH="$HOME/bin_common:$PATH"
EOF
As of 2024-01-01. See the comments or -h/--help
in each script for more details
-
blog.py - Create a blog post for www.bbkane.com
-
color_exceptions.py - highlight exceptions in log files
-
copy_as_rtf.py - Copy CSV file as rich text
-
date_range.pl - Print a date range
-
easyssl.py - Generate and run/print the small subset of openssl commands I care about
-
envwarden.py - Exports environmental variables from a TOML config file and the system Key Chain
-
format_jsonl.py - Read stdin and pretty-print JSON lines
-
format_shell_cmd.py - Read a line from stdin and format as a BASH Command
-
format_f-string.py - read stdin formatted as a Python f-string and format with key-value pairs passed as args
-
git-lines-changed-tsv - Print lines changed over time for a git repo
-
git-tagit - Print git status and current last 10 git tags, then prompt for a new git tag and push
-
imgcat - Display images inline in the iTerm2 using Inline Images Protocol
-
json_to_yaml.sh - Read JSON file by path and print as YAML to stdout
-
jsonl_to_csv.py - Normalize a newline delimited JSON log by adding any missing keys with null
values
-
open_tmp_html.py - Write html input to a tmpfile, then open in a browser
-
reply_to_recruiters.py - Reply to recruiters
-
scatterplot.py - Create interactive HTML scatter/line plots!
-
yaml_to_json.sh - Read YAML file by path and print as JSON to stdout