This file contains hidden or 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
# just stfu | |
# for that time u just wanna pause without getting out of the zone (who presses the pause button ugh) | |
# make it executable, add to PATH and use "stfu" | |
osascript -e 'tell application "Spotify" to playpause' | |
# that's my big SHELL script. | |
# kind of a let down. | |
# yeah I get it. | |
# sometimes you just expect the solution to be a lot more complicated. |
This file contains hidden or 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
#!/bin/bash | |
# | |
# This hook will look for code comments marked '##no-commit' | |
# - case-insensitive | |
# - dash is optional | |
# - there may be a space after the ## | |
# | |
noCommitCount=$(git diff --no-ext-diff --cached | egrep -i --count "(@No|\#\#\s?no[ -]?)commit") | |
if [ "$noCommitCount" -ne "0" ]; then | |
echo "WARNING: You are attempting to commit changes which include a 'no-commit'." |