scripts
This commit is contained in:
parent
bf5a9500d9
commit
f880ad26cc
2 changed files with 13 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
title = "about"
|
title = "about"
|
||||||
weight = 2
|
weight = 2
|
||||||
|
|
||||||
|
[cascade]
|
||||||
type = "generic"
|
type = "generic"
|
||||||
layout = "single"
|
layout = "single"
|
||||||
+++
|
+++
|
||||||
|
|
12
content/about/random-scripts.md
Normal file
12
content/about/random-scripts.md
Normal 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
|
||||||
|
```
|
Loading…
Reference in a new issue