aboutsummaryrefslogtreecommitdiff
path: root/Västgöta
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-01-17 07:57:43 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2023-01-17 07:57:43 +0100
commite2a71ea53bc949a8ccffb84a794105ba920e7862 (patch)
tree58527d40b4628f8e47fe54e349f0bf535c126613 /Västgöta
parenttis 17 jan 2023 07:57:31 CET (diff)
parenttors 12 jan. 2023 14:12:07 CET (diff)
downloadwiki-public-e2a71ea53bc949a8ccffb84a794105ba920e7862.tar.gz
wiki-public-e2a71ea53bc949a8ccffb84a794105ba920e7862.tar.xz
Merge branch 'master' of git.hornquist.se:git/wiki-public
Diffstat (limited to 'Västgöta')
-rw-r--r--Västgöta/Stupandator.wiki53
1 files changed, 53 insertions, 0 deletions
diff --git a/Västgöta/Stupandator.wiki b/Västgöta/Stupandator.wiki
new file mode 100644
index 0000000..f6fe3bf
--- /dev/null
+++ b/Västgöta/Stupandator.wiki
@@ -0,0 +1,53 @@
+== Kassasystem ==
+https://git.lysator.liu.se/hugo/stupan
+
+{{{sh
+vastgota@balder:~$ cat /etc/apt/sources.list.d/adrift-space.list
+deb [allow-insecure=yes] http://repo.adrift.space/debian una main
+deb-src [allow-insecure=yes] http://repo.adrift.space/debian una main
+}}}
+
+== Musik ==
+
+=== /etc/mpd.conf ===
+{{{
+
+music_directory "/home/vastgota/Musik/Music"
+
+audio_output {
+ type "pulse"
+ name "My Pulse Output"
+ server "localhost"
+}
+
+== Backup ==
+`~/Stupan-Backup`
+
+crontab varje dag 12:00
+
+=== ~/Dokument/Backup/ ===
+{{{bash
+#!/usr/bin/env bash
+
+files=(
+ ~/.stupan/stupan.db
+ ~/Skrivbord/"Kreditsystem Glöm inte och SPARA.ods"
+)
+
+dests=(
+ ~/Stupan-Backup
+ stupan-backup@vastgota.nation.liu.se:Stupan-Backup
+)
+
+for f in "${files[@]}"; do
+ filename=$(basename -- "$f")
+ extension="${filename##*.}"
+ filename="${filename%.*}"
+ destname="${filename}-$(date -I).${extension}"
+ for dest in "${dests[@]}"; do
+ rsync --protect-args "$f" "${dest}/${destname}"
+ done
+done
+}}}
+
+