I hereby claim:
- I am grayedfox on github.
- I am grayedfox (https://keybase.io/grayedfox) on keybase.
- I have a public key whose fingerprint is 6847 1215 2CB4 7637 0582 3FBD CC33 73F2 7F9A 9688
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| source $HOME/.bashrc | |
| MACHINE=$(uname -s) | |
| cd $HOME | |
| if [ "$MACHINE" == "Linux" ]; then | |
| printf "Removing libreoffice, thunderbird, and webbrowser app..." |
| /* | |
| * Remove all instances of a commented copyright notice from all files inside of a project. | |
| * Needs to be compiled first (javac). | |
| * Will not overwrite hidden files, symbolic links, or attempt to write to directories that are not writable. | |
| * Will only overwrite files where the copyright text is found (will not overwrite with no changes). | |
| */ | |
| import java.io.IOException; | |
| import java.io.*; | |
| import java.nio.file.Files; |
| #!/usr/bin/env bash | |
| LATEST_TAG="$(curl --silent https://api.github.com/repos/$1/$2/tags | grep -Po '"name": "\K.*?(?=")' | head -1)" | |
| echo "Cloning $LATEST_TAG" | |
| if [ "$3" = "-https" ]; then | |
| git clone https://github.com/$1/$2.git --branch $LATEST_TAG | |
| else | |
| git clone git@github.com:$1/$2.git --branch $LATEST_TAG |
| #!/usr/bin/env bash | |
| BRANCH="main" | |
| if [ $# -eq 1 ] ; then | |
| BRANCH=$1 | |
| fi | |
| MERGED_BRANCHES=$(git branch --merged $BRANCH | grep -v '^[ *]* '"$BRANCH"'$') |
| #!/usr/bin/env bash | |
| isNumber() { | |
| ( printf "%f" $1 >/dev/null 2>&1 ) \ | |
| && echo "true" \ | |
| || echo "false" | |
| } | |
| log() { | |
| GREEN='\033[0;32m' |
| #!/usr/bin/env bash | |
| # first we prune origin to ensure our local list of remote branches is up to date | |
| git remote prune origin | |
| GONE_BRANCHES=$(git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}') | |
| if [ -z "$GONE_BRANCHES" ]; then | |
| echo "Could not find any local branches that have a gone remote" | |
| exit 0 |
| function onOpen() { | |
| var menu = SpreadsheetApp.getUi().createMenu('Custom Filter'); | |
| menu | |
| .addItem('Show All', 'showAll') | |
| .addToUi(); | |
| } | |
| function onEdit(e) { | |
| var cellRef = e.range.getA1Notation(); | |
The reason is rather simple: there is a pretty well known and established convention inside GitHub threads to react to ideas, issues, and comments by indicating your support with a thumbs up or down.
If people who wish to show their support for something indicate this with a thumbs up reaction then:
| #!/usr/bin/env bash | |
| BRANCH="main" | |
| if [ $# -eq 1 ] ; then | |
| BRANCH=$1 | |
| fi | |
| # count how many commits on your branch are not on the target branch, defaults to main | |
| git rev-list HEAD --count ^$BRANCH |