(Also see [remarkable][], the markdown parser created by the author of this cheatsheet)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# vim: ft=sh | |
set -o errexit | |
cmds=('diff' 'go' 'jq (github.com/stedolan/jq)' 'patch') | |
for cmd in "${cmds[@]}"; do | |
command -v "${cmd%% *}" >/dev/null 2>&1 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# vim: ft=sh | |
set -o errexit | |
set -o pipefail | |
shopt -s nullglob | |
usage () { | |
echo "Usage: $0 " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# vim: ft=sh | |
set -o errexit | |
set -o pipefail | |
pushd . >/dev/null | |
command -v git >/dev/null 2>&1 \ | |
|| { echo "$0: git must be installed" >&2; exit 1; } |