1
Fork 0
dotfiles/.functions.zsh

20 lines
455 B
Bash
Raw Normal View History

2022-07-20 12:29:08 +00:00
gtag () {
git tag -s -a "$1" -m "Version $1"
}
2022-09-05 12:34:28 +00:00
get-feed-url () {
for input_url in "$@"; do
html=$(curl -fsLS "$input_url")
echo $(echo $html | select-html '[property="og:title"]' -a "content")
echo $(echo $html | select-html '[rel="alternate"][type]' -a "href")
echo
done
}
2023-01-01 12:54:30 +00:00
to-opus () {
for input_file in "$@"; do
output_file="${input_file%.*}.opus"
ffmpeg -i "$input_file" -c:a libopus -b:a 128K "$output_file"
done
}