add some c3 voc helper scripts; add $HOME/bin to $PATH; Add yanone kaffeesatz zerohack font

This commit is contained in:
Philip Henning 2018-12-27 21:42:38 +01:00
parent 15e477e2c3
commit 4b31c2e4cf
12 changed files with 86 additions and 0 deletions

13
dotfiles/bin/c3check Executable file
View file

@ -0,0 +1,13 @@
#!/usr/bin/env bash
if [[ -z "$1" ]] || [[ -z "$2" ]]; then
echo "Usage: $0 <event> <talk-id>"
echo "e.g.: $0 35c3 9766"
exit 1
fi
mediainfo /video/video/encoded/$1/$2-hd.mp4
read -p "Press any key to continue... " -n1 -s
vlc /video/video/encoded/$1/$2-hd.mp4

8
dotfiles/bin/c3cp Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
if [[ -z "$1" ]]; then
echo "Filepath missing."
exit 1
fi
rsync --verbose --progress --inplace $1 /tmp/

9
dotfiles/bin/c3kdenlive Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
if [[ -z "$1" ]] || [[ -z "$2" ]]; then
echo "Usage: $0 <event> <talk-id>"
echo "e.g.: $0 35c3 9766"
exit 1
fi
kdenlive /video/fuse/$1/*/$2/project.kdenlive

9
dotfiles/bin/c3l Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
if [[ -z "$1" ]] || [[ -z "$2" ]]; then
echo "Usage: $0 <event> <talk-id>"
echo "e.g.: $0 35c3 9766"
exit 1
fi
ls -lah --color=tty /video/fuse/$1/*/$2/

9
dotfiles/bin/c3mpv Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
if [[ -z "$1" ]] || [[ -z "$2" ]]; then
echo "Usage: $0 <event> <talk-id>"
echo "e.g.: $0 35c3 9766"
exit 1
fi
mpv /video/fuse/$1/*/$2/uncut.ts

9
dotfiles/bin/mount_c3voc Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
if [[ $UID -ne 0 ]]; then
echo "You have to run this script as root!"
exit 1
fi
mount.cifs //storage.lan.c3voc.de/fuse /video/fuse -o rw,guest -o uid=phg
mount.cifs //storage.lan.c3voc.de/video /video/video -o rw,guest -o uid=phg