This commit is contained in:
Michael Zhang 2021-06-17 22:33:51 -05:00
parent bf5a9500d9
commit f880ad26cc
Signed by: michael
GPG key ID: BDA47A31A3C8EE6B
2 changed files with 13 additions and 0 deletions

View file

@ -2,6 +2,7 @@
title = "about"
weight = 2
[cascade]
type = "generic"
layout = "single"
+++

View file

@ -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
```