This repository has been archived on 2021-04-06. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/home/.zshrc.docker

57 lines
1.1 KiB
Docker
Raw Normal View History

2018-03-28 01:24:21 +02:00
# Docker function definitions
function speedtest() {
docker run --rm tianon/speedtest
}
2018-04-09 16:38:38 +02:00
function vobsub2srt() {
docker run \
--rm \
2018-11-13 18:27:12 +01:00
-v $PWD:/data \
-w /data \
2018-11-13 18:27:12 +01:00
-u $(id -u) \
2018-04-09 16:38:38 +02:00
sbruder/vobsub2srt \
--blacklist '„“”|/\`_~<>' \
$@
}
2018-04-09 17:53:46 +02:00
function aucdtect() {
docker run \
--rm \
2018-04-09 17:53:46 +02:00
-v "$PWD:/home/aucdtect/:ro" \
-e uid=$(id -u) \
-e gid=$(id -g) \
sbruder/aucdtect \
2018-04-09 17:53:46 +02:00
$@
}
function unrar () {
docker run \
--rm \
-v "$PWD:/data" \
-w /data \
-u $(id -u) \
r.sbruder.de/unrar \
$@
}
2019-08-06 06:32:47 +02:00
function waifu2x() {
docker run \
--rm \
-t \
-v "$PWD:/data" \
-w /data \
-v "$HOME/.waifu2x:/home/waifu2x/.waifu2x" \
-e HOME=/home/waifu2x \
-u $(id -u) \
--group-add $(getent group video|cut -d: -f3) \
--group-add $(getent group render|cut -d: -f3) \
--device /dev/dri \
r.sbruder.de/waifu2x-converter-cpp \
$@
}
2019-08-06 17:41:16 +02:00
function waifu2x-photo() {
waifu2x --model-dir /usr/local/share/waifu2x-converter-cpp-photo $@
}