Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am a-kinder on github.
  • I am angela_rose (https://keybase.io/angela_rose) on keybase.
  • I have a public key ASAOIY-bPkuG6z5Vjlhak4W8KYjsy69B1q5Ua2O-KT1Omwo

To claim this, I am signing this object:

@a-kinder
a-kinder / largefiles.sh
Created March 11, 2020 17:34
Find large files
sudo du -h --max-depth=1
@a-kinder
a-kinder / master-commit-check
Last active August 30, 2018 17:57
Blocks commits to master unless `-n` flag is provided
#!/bin/bash
# Stops accidental commits to master. Adapted from https://gist.github.com/ColCh/9d48693276aac50cac37a9fce23f9bda
# Install in project:
# install or symlink at .git/hooks/pre-commit
# chmod +x .git/hooks/pre-commit
#!/bin/bash
protected_branch='master'
current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')