add check-pip-updates and convert-flacs-to-mp3
This commit is contained in:
parent
ddd46d6de7
commit
bc4d708ea2
6
check-pip-updates.sh
Executable file
6
check-pip-updates.sh
Executable file
|
@ -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"
|
7
convert-flacs-to-mp3.sh
Executable file
7
convert-flacs-to-mp3.sh
Executable file
|
@ -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…
Reference in a new issue