Last active
December 27, 2022 17:58
-
-
Save drabb/20f01b78821e9cdc7acb9528ad6e6fa1 to your computer and use it in GitHub Desktop.
stupid bash tricks
This file contains 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 | |
echo "$1" | bc -l |
This file contains 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 | |
gh api /repos/nwjs-ffmpeg-prebuilt/nwjs-ffmpeg-prebuilt/releases/latest --method GET | jq -r '.assets[] | select(.name | contains("linux-x64")) | .browser_download_url' | wget -O libffmpeg.zip -i - | |
unzip libffmpeg.zip | |
rm libffmpeg.zip | |
sudo mv ./libffmpeg.so /usr/lib64/opera/libffmpeg.so |
This file contains 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 | |
mins=${1:-4} | |
secs=$(($mins * 60)) | |
sleep $secs | |
/usr/bin/notify-send -i emblem-urgent "Tea's Done!" "your tea is gonna be bitter, just like you"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment