Skip to content

Instantly share code, notes, and snippets.

@beatlegeuse
beatlegeuse / mp3-mp4-compare.sh
Last active August 21, 2021 14:14
metadataless mp3 & mp4 folder comparison
# Generate md5sum from mp3 file, excluding any ID3 tags
function mp3sum {
file="$(mktemp -p /dev/shm/)"
cp "$1" $file
eyeD3 --remove-all -Q $file >/dev/null 2>&1
hash=$(md5sum $file | cut -f 1 -d" ")
echo $hash "$1"
rm $file
}
@beatlegeuse
beatlegeuse / man.sh
Last active June 27, 2018 07:47 — forked from lkptrzk/man.sh
`man` replacement for git bash on windows
#!/bin/sh
# man.sh - `man` replacement for git bash on windows
if [ $# -eq 0 ] ; then
echo "No command specified to get man page for"
exit 1
fi
url="http://man.he.net/?section=all&topic="
[
{ "keys": ["f12"], "command": "htmlprettify"},
{ "keys": ["f1"], "command": "fold" },
{ "keys": ["f2"], "command": "unfold" },
{ "keys": ["ctrl+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} },
{ "keys": ["ctrl+space"], "command": "auto_complete" },
{ "keys": ["ctrl+space"], "command": "replace_completion_with_auto_complete", "context":
[
{ "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },