Skip to content

Instantly share code, notes, and snippets.

@fqxp
fqxp / git-info
Created September 7, 2020 09:55
`git info` command to show commits on current branch, whether a rebase to master is necessary and whether you need force-push
#!/bin/bash
CURRENT_BRANCH=$(git branch | grep '^\* ' | sed 's#..\(.*\)#\1#')
CURRENT_BRANCH_LENGTH=$(echo -n $CURRENT_BRANCH | wc -c)
echo
echo -e "\e[38;2;185;202;74mBranch »$CURRENT_BRANCH«"
echo -e "─────────$(printf '─%.0s' $(seq 1 $CURRENT_BRANCH_LENGTH))\e[0m"
echo
echo -e "\e[38;2;185;202;74m⯈ Commits on this branch\e[0m"
@fqxp
fqxp / cheese
Last active June 10, 2022 09:56
#!/bin/bash
# Cheese taken from https://en.wikipedia.org/wiki/Cheese_Shop_sketch
shuf -n 1 - <<CHEESE
Cheese
Red Leicester
Tilsit
Caerphilly
Bel Paese
### Keybase proof
I hereby claim:
* I am fqxp on github.
* I am frankploss (https://keybase.io/frankploss) on keybase.
* I have a public key whose fingerprint is 6CD9 696C D7E3 D355 F7F4 F73C 3B2A 7B6B 065C 00B0
To claim this, I am signing this object: