This file contains 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 | |
# Example of mass adding CODEOWNERS | |
cd $(mktemp -d) | |
set -e | |
cat ~/Desktop/repos.txt | while read repo; do \ | |
git clone git@github.com:infusionsoft/${repo}.git || echo "repo already cloned" | |
pushd ${repo} |
This file contains 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 Pastebin - Edit paste bin buffer saving to the buffer on close. | |
set -e | |
trap 'echo "error on line ${LINENO}"' ERR | |
readonly SCRIPT_NAME=vipb | |
err() { |
This file contains 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 | |
# | |
# Example Bash showing how to parse command line flags | |
# without using getopt. | |
usage() { | |
echo 1>&2 "usage: bash_flag_parse [--help] [--dry] [--file path] foo" | |
exit 2 | |
} |
This file contains 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
g6Rib2R5hqhkZXRhY2hlZMOpaGFzaF90eXBlCqNrZXnEIwEgMOct3hyPmqdHsWh7gsmFalBNmbn4kfIKUd9CsygHP1oKp3BheWxvYWTFAvJ7ImJvZHkiOnsia2V5Ijp7ImVsZGVzdF9raWQiOiIwMTIwMzBlNzJkZGUxYzhmOWFhNzQ3YjE2ODdiODJjOTg1NmE1MDRkOTliOWY4OTFmMjBhNTFkZjQyYjMyODA3M2Y1YTBhIiwiaG9zdCI6ImtleWJhc2UuaW8iLCJraWQiOiIwMTIwMzBlNzJkZGUxYzhmOWFhNzQ3YjE2ODdiODJjOTg1NmE1MDRkOTliOWY4OTFmMjBhNTFkZjQyYjMyODA3M2Y1YTBhIiwidWlkIjoiNTcxZDEzZDczOGViOGNiZDYzMjE3N2ZkMzI5ZDRjMTkiLCJ1c2VybmFtZSI6ImJyaWFuYm91Z2h0b24ifSwic2VydmljZSI6eyJuYW1lIjoiZ2l0aHViIiwidXNlcm5hbWUiOiJiYm91Z2h0b24ifSwidHlwZSI6IndlYl9zZXJ2aWNlX2JpbmRpbmciLCJ2ZXJzaW9uIjoxfSwiY2xpZW50Ijp7Im5hbWUiOiJrZXliYXNlLmlvIGdvIGNsaWVudCIsInZlcnNpb24iOiIxLjAuMTMifSwiY3RpbWUiOjE0NTc0Njk1NzIsImV4cGlyZV9pbiI6NTA0NTc2MDAwLCJtZXJrbGVfcm9vdCI6eyJjdGltZSI6MTQ1NzQ2OTUyOCwiaGFzaCI6ImIxYTEzNzA3ZTljZDQ1NmJjNGMyMzljNDMyNDEzNTA2MzdmYzZlMjUxOTE4MmM3MWZkNTg4MWY0YjIzZjY4NjYyY2FjMTVlNTNmMWQ2NDgwYWYxNWYwNGUyYTAzYjhlZmFhOWE4MTkwZmE3MWFkODY0ODNmZWVjMzVmZmU4Njc5Iiwic2Vxbm8iOjQwMzM4N30sInByZXYiOiJjYWZjYTllMmMzNzg2Y2UwMGE4NDViNzZlZmMw |
This file contains 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 | |
# set-profile-image <image-path> | |
error_exit(){ | |
echo $1 1>&2 | |
exit 1 | |
} | |
IMAGE_PATH=$1 |