Skip to content

Instantly share code, notes, and snippets.

@mrjk
Created April 23, 2026 21:47
Show Gist options
  • Select an option

  • Save mrjk/d29d614bb707e33f6a4ace2bc7a954b4 to your computer and use it in GitHub Desktop.

Select an option

Save mrjk/d29d614bb707e33f6a4ace2bc7a954b4 to your computer and use it in GitHub Desktop.
Bash library helpers
title ()
{
local msg="$@"
echo
echo "========================"
echo " $msg"
echo "========================"
}
log ()
{
>&2 echo "$@"
}
pydict2json ()
{
python3 -c "import sys, json, ast; print(json.dumps(ast.literal_eval(sys.stdin.read().strip())))"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment