Compare commits

...

9 commits

Author SHA1 Message Date
22b968a321 Merge branch 'prod' 2024-04-22 12:22:16 +02:00
ccf13e8780
wkgen plasma 2024-02-25 20:13:45 +01:00
381f3957c7 wkgen cinnamon 2023-12-16 14:06:56 +01:00
aa8b777806 mini scirpts 2023-12-02 18:24:53 +01:00
3e854d9b48 wakeonlan homeserver 2023-11-27 11:01:01 +01:00
038b19996b add wkgen 2023-11-26 16:40:03 +01:00
78d5c0cda5 remove target folders (for cargo developement) 2023-07-29 14:01:14 +02:00
6a98f2db8d
qemu spice script added 2023-07-02 22:38:20 +02:00
87ba8f1f44
daily to weekly 2023-06-12 10:51:07 +02:00
9 changed files with 39 additions and 2 deletions

View file

@ -44,6 +44,7 @@ $BORG_BIN create \
--exclude '*/.Trash*' \ --exclude '*/.Trash*' \
--exclude '*/Trash*' \ --exclude '*/Trash*' \
--exclude '*/build/*' \ --exclude '*/build/*' \
--exclude '*/target/*' \
--exclude '*Steam*' \ --exclude '*Steam*' \
\ \
${BORG_REPO}::'{hostname}-{now}' \ ${BORG_REPO}::'{hostname}-{now}' \

View file

@ -11,7 +11,7 @@ cat /tmp/mail-logger/* >> /tmp/mail-logger-meta/combined.log
cat /tmp/mail-logger-big/* >> /tmp/mail-logger-meta/combined.log cat /tmp/mail-logger-big/* >> /tmp/mail-logger-meta/combined.log
echo -e "\ echo -e "\
Daily mail report for $(hostname) $(date +"%Y-%m-%dT%H:%M:%S%z").\n\ Weekly mail report for $(hostname) $(date +"%Y-%m-%dT%H:%M:%S%z").\n\
A summary of the logs is below.\ A summary of the logs is below.\
If you want to see the complete logs, open the attachment of this E-Mail.\n\n\ If you want to see the complete logs, open the attachment of this E-Mail.\n\n\
==================================================================================================\ ==================================================================================================\

View file

@ -9,7 +9,7 @@ cat /tmp/mail-logger/* >> /tmp/mail-logger-meta/combined.log
cat /tmp/mail-logger-big/* >> /tmp/mail-logger-meta/combined.log cat /tmp/mail-logger-big/* >> /tmp/mail-logger-meta/combined.log
echo -e "\ echo -e "\
Daily mail report for $(hostname) $(date +"%Y-%m-%dT%H:%M:%S%z").\n\ Weekly mail report for $(hostname) $(date +"%Y-%m-%dT%H:%M:%S%z").\n\
A summary of the logs is below.\ A summary of the logs is below.\
If you want to see the complete logs, open the attachment of this E-Mail.\n\n\ If you want to see the complete logs, open the attachment of this E-Mail.\n\n\
==================================================================================================\ ==================================================================================================\

3
qemu-spice.sh Normal file
View file

@ -0,0 +1,3 @@
#!/bin/bash
# i think this optimizes the display connection to a qemu vm, im not sure honestly
qemu-system-x86_64 -vga qxl -device virtio-serial-pci -spice unix=on,addr=/tmp/vm_spice.socket,disable-ticketing=on -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 -chardev spicevmc,id=spicechannel0,name=vdagent

0
tailscale.sh Normal file → Executable file
View file

2
wakehome.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/bash
wakeonlan d0:17:c2:a8:78:b4

9
wanikaliwallpaper-cinnamon.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
date='date +%Y-%m-%d\ %T'
logfile=~/.wkgen.log
set -e
echo "[$(eval $date)]: starting webrequests..." | tee -a $logfile
curl -s -o ~/Pictures/wallpaper/wk-progress.1.png "https://wkgen.homeserver.box/?k=7b98a684-5c91-44ab-86b1-f7023609fe4e&d=1"
echo "[$(eval $date)]: setting wallpaper..." | tee -a $logfile
gsettings set org.cinnamon.desktop.background picture-uri "file:///home/plex/Pictures/wallpaper/wk-progress.1.png"
echo "[$(eval $date)]: done" | tee -a $logfile

13
wanikaliwallpaper-plasma.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
date='date +%Y-%m-%d\ %T'
logfile=~/.wkgen.log
filelocation=/home/plex/Pictures/wallpaper/wk-progress.1.png
set -e
echo "[$(eval $date)]: starting webrequests..." | tee -a $logfile
curl -s -o $filelocation "https://wkgen.homeserver.box/?k=7b98a684-5c91-44ab-86b1-f7023609fe4e&d=1"
echo "[$(eval $date)]: setting wallpaper..." | tee -a $logfile
kwriteconfig5 \
--file "$HOME/.config/plasma-org.kde.plasma.desktop-appletsrc" \
--group 'Containments' --group '1' --group 'Wallpaper' --group 'org.kde.image' \
--group 'General' --key 'Image' $filelocation
echo "[$(eval $date)]: done" | tee -a $logfile

9
wanikaliwallpaper.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
date='date +%Y-%m-%d\ %T'
logfile=~/.wkgen.log
set -e
echo "[$(eval $date)]: starting webrequests..." | tee -a $logfile
curl -s -o ~/Pictures/wallpaper/wk-progress.1.png "https://wkgen.homeserver.box/?k=7b98a684-5c91-44ab-86b1-f7023609fe4e&d=1"
echo "[$(eval $date)]: setting wallpaper..." | tee -a $logfile
gsettings set org.cinnamon.desktop.background picture-uri "file:///home/plex/Pictures/wallpaper/wk-progress.1.png"
echo "[$(eval $date)]: done" | tee -a $logfile