diff --git a/content/about/_index.md b/content/about/_index.md index 82e0949..dc3ffba 100644 --- a/content/about/_index.md +++ b/content/about/_index.md @@ -2,6 +2,7 @@ title = "about" weight = 2 +[cascade] type = "generic" layout = "single" +++ diff --git a/content/about/random-scripts.md b/content/about/random-scripts.md new file mode 100644 index 0000000..2127d31 --- /dev/null +++ b/content/about/random-scripts.md @@ -0,0 +1,12 @@ ++++ +title = "random scripts" ++++ + +### convert a bunch of `flac`s to `mp3` + +```bash +#!/bin/bash +function flac2mp3() { ffmpeg -y -i "$1" -acodec libmp3lame "$(basename "$1")".mp3; } +export -f flac2mp3 # only works in bash +fd "\.flac$" | parallel flac2mp3 +```