From f880ad26ccd12c84742c7ab1d4940f75ec1625e3 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Thu, 17 Jun 2021 22:33:51 -0500 Subject: [PATCH] scripts --- content/about/_index.md | 1 + content/about/random-scripts.md | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 content/about/random-scripts.md 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 +```