aboutsummaryrefslogtreecommitdiff
path: root/Västgöta/Stupandator.wiki
blob: e7ff21d2246ee9687bbe164c9a365b63b08365e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
== 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 ==

`apt install wildmidi`

=== /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
}}}