Skip to content

Instantly share code, notes, and snippets.

View wcampbell0x2a's full-sized avatar

wcampbell wcampbell0x2a

View GitHub Profile
### 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:
@wcampbell0x2a
wcampbell0x2a / sort
Created April 29, 2019 22:02
Sort Music (no warranty provided)
#!/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
// ==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==