Skip to content

Instantly share code, notes, and snippets.

@strokyl
strokyl / bash_script
Last active September 10, 2021 12:19
#!/bin/bash -eu
echoerr() { echo "$@" 1>&2; }
SCRIPTDIR=$(dirname "$0")
main() {
echo "Yo from $SCRIPTDIR"
echo ${TO_SET:?"Please set TO_SET"}
echoerr "Error"
}
@strokyl
strokyl / clean_branch.sh
Created September 10, 2021 08:52
clean git branch
#!/bin/bash
git branch -d $(git branch --merged=master | grep -v master | grep -v develop)
git branch -d $(git branch --merged=develop | grep -v develop | grep -v master)
git fetch --prune

Keybase proof

I hereby claim:

  • I am strokyl on github.
  • I am strokyl (https://keybase.io/strokyl) on keybase.
  • I have a public key ASBvJg_DFh-qECOuYC43iAkLssq3-cUWT1EmgLqq-MkeVQo

To claim this, I am signing this object: