Initial commit
This commit is contained in:
commit
dbd2cb88a1
|
@ -0,0 +1,6 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
v4l2-ctl -d /dev/v4l/by-id/usb-046d_HD_Pro_Webcam_C920_F89054AF-video-index0 --set-ctrl zoom_absolute=0
|
||||||
|
v4l2-ctl -d /dev/v4l/by-id/usb-046d_HD_Pro_Webcam_C920_F89054AF-video-index0 --set-ctrl power_line_frequency=1
|
||||||
|
v4l2-ctl -d /dev/v4l/by-id/usb-046d_HD_Pro_Webcam_C920_F89054AF-video-index0 --set-ctrl focus_absolute=0
|
||||||
|
v4l2-ctl -d /dev/v4l/by-id/usb-046d_HD_Pro_Webcam_C920_F89054AF-video-index0 --set-ctrl focus_auto=0
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
scp mnemosyne:/var/backups/postgres/polymny-2.pg_dump.gz /tmp/
|
||||||
|
gunzip /tmp/polymny-2.pg_dump.gz
|
||||||
|
chmod 0666 /tmp/polymny-2.pg_dump
|
||||||
|
# sudo su -c '/usr/lib/postgresql/12/bin/dropdb polymny ; /usr/lib/postgresql/12/bin/createdb polymny -O polymny; /usr/lib/postgresql/12/bin/pg_restore -d polymny /tmp/polymny.pg_dump' postgres
|
||||||
|
sudo su -c 'dropdb polymny-2 ; createdb polymny-2 -O polymny; pg_restore -d polymny-2 /tmp/polymny-2.pg_dump' postgres
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [ $# -ne 1 ]; then
|
||||||
|
echo this program expects 1 single argument
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkcert $1
|
||||||
|
sudo mkdir -p /etc/letsencrypt/live/$1/
|
||||||
|
sudo mv $1-key.pem /etc/letsencrypt/live/$1/privkey.pem
|
||||||
|
sudo mv $1.pem /etc/letsencrypt/live/$1/fullchain.pem
|
|
@ -0,0 +1,29 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [ $# -ne 1 ]; then
|
||||||
|
echo -e "\033[31;1merror:\033[0m this script expects a single playlsit argument"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
play() {
|
||||||
|
index=1
|
||||||
|
count=$(ls $1 | wc -l)
|
||||||
|
ls $1 | sort -R | while read music; do
|
||||||
|
echo Playing $music "($index / $count)"
|
||||||
|
index=$(($index+1))
|
||||||
|
mplayer "$1/$music" < /dev/tty > /dev/null 2>&1
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
|
||||||
|
while true; do
|
||||||
|
play ~/Music/Relax/$1
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
done
|
Loading…
Reference in New Issue