# Docker function definitions
function speedtest() {
docker run --rm tianon/speedtest
}
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=939876
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=939768
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=939754
function docker-gimp() {
docker run --rm -it \
-e DISPLAY \
-e HOME=/home/gimp \
-u $(id -u) \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v $PWD:/home/gimp/data/ \
-v /tmp/:/home/gimp/tmp/ \
-v ~/.local/share/gegl-0.4:/home/gimp/.local/share/gegl-0.4 \
-v ~/.config/GIMP/:/home/gimp/.config/GIMP/ \
jess/gimp $@
function vobsub2srt() {
docker run \
--rm \
-v $PWD:/data \
-w /data \
sbruder/vobsub2srt \
--blacklist '„“”|’/\`_~<>' \
$@
function aucdtect() {
-v "$PWD:/home/aucdtect/:ro" \
-e uid=$(id -u) \
-e gid=$(id -g) \
sbruder/aucdtect \
function unrar () {
-v "$PWD:/data" \
r.sbruder.de/unrar \
function waifu2x() {
-t \
-v "$HOME/.waifu2x:/home/waifu2x/.waifu2x" \
-e HOME=/home/waifu2x \
--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 $@