57 lines
1.1 KiB
Docker
57 lines
1.1 KiB
Docker
# Docker function definitions
|
||
|
||
function speedtest() {
|
||
docker run --rm tianon/speedtest
|
||
}
|
||
|
||
function vobsub2srt() {
|
||
docker run \
|
||
--rm \
|
||
-v $PWD:/data \
|
||
-w /data \
|
||
-u $(id -u) \
|
||
sbruder/vobsub2srt \
|
||
--blacklist '„“”|’/\`_~<>' \
|
||
$@
|
||
}
|
||
|
||
function aucdtect() {
|
||
docker run \
|
||
--rm \
|
||
-v "$PWD:/home/aucdtect/:ro" \
|
||
-e uid=$(id -u) \
|
||
-e gid=$(id -g) \
|
||
sbruder/aucdtect \
|
||
$@
|
||
}
|
||
|
||
function unrar () {
|
||
docker run \
|
||
--rm \
|
||
-v "$PWD:/data" \
|
||
-w /data \
|
||
-u $(id -u) \
|
||
r.sbruder.de/unrar \
|
||
$@
|
||
}
|
||
|
||
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 \
|
||
$@
|
||
}
|
||
|
||
function waifu2x-photo() {
|
||
waifu2x --model-dir /usr/local/share/waifu2x-converter-cpp-photo $@
|
||
}
|