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
### Keybase proof | |
I hereby claim: | |
* I am wcampbell0x2a on github. | |
* I am wcampbell (https://keybase.io/wcampbell) on keybase. | |
* I have a public key whose fingerprint is A0B3 015B F635 563F A570 59D0 A040 F4DA FC68 FFE8 | |
To claim this, I am signing this object: |
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 | |
find . -name "*.mp3" -o -name "*.wma" | while read song_filename; do | |
artist=$(exiftool "$song_filename" | grep -m1 "Artist" | cut -d : -f2 | cut -c 2- | awk '{print tolower($0)}' | sed 's/ /_/g') | |
album=$(exiftool "$song_filename" | grep -m1 "Album" | cut -d : -f2 | cut -c 2- | awk '{print tolower($0)}') | |
#echo "file: $song_filename" | |
#echo "artist: $artist" | |
#echo "album: $album" | |
if [ -z "$artist" ] || [ -z "$album" ]; then | |
#echo "empty" | |
else |
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
// ==UserScript== | |
// @name Rocketchat notification checker | |
// @namespace https://chat.pretalen.com | |
// @version 0.1 | |
// @description Re-get notifications again | |
// @author You | |
// @match https://chat.pretalen.com/* | |
// @grant none | |
// ==/UserScript== |