1
0
Fork 0

add check-pip-updates and convert-flacs-to-mp3

master
dece 2 years ago
parent ddd46d6de7
commit bc4d708ea2

@ -0,0 +1,6 @@
#!/bin/bash -e
# Check available updates for manually installed Python packages.
table="$(pip list --user --outdated)"
echo "$table"
list="$(echo "$table" | tail -n +3 | awk '{print $1}' | tr '\n' ' ')"
echo "Update the all with: $ pip install -U $list"

@ -0,0 +1,7 @@
#!/bin/bash -ex
# Convert FLACs in a directory to MP3 files (V0, but configure it below).
# Requires fdfind and ffmpeg.
fdfind -t f -e flac . "$1" | while read -r flac; do
mp3="${flac/%flac/mp3}"
ffmpeg -i "$flac" -codec:a libmp3lame -q:a 0 "$mp3" && rm "$flac"
done
Loading…
Cancel
Save