Skip to content

Instantly share code, notes, and snippets.

Sicherheits- & Einrichtungswarnungen
Für die Sicherheit und Performance Deiner Instanz ist es wichtig, dass alles richtig konfiguriert ist. Um Dir dabei zu helfen, führen wir einige automatische Prüfungen durch. Weitere Informationen kannst Du der verlinkten Dokumentation entnehmen.
Es gibt einige Warnungen bei Deiner Systemkonfiguration.
MySQL wird als Datenbank verwendet, unterstützt jedoch keine 4-Byte-Zeichen. Um beispielsweise 4-Byte-Zeichen (wie Emojis) ohne Probleme mit Dateinamen oder Kommentaren verarbeiten zu können, wird empfohlen, die 4-Byte-Unterstützung in MySQL zu aktivieren. Für weitere Details lesen bitte die Dokumentationsseite hierzu.
Der HTTP-Header "Strict-Transport-Security" ist nicht auf mindestens 15552000 Sekunden eingestellt. Für mehr Sicherheit wird das Aktivieren von HSTS empfohlen, wie es in den Sicherheitshinweisen erläutert ist.
Es wurde kein PHP-Memory-Cache konfiguriert. Zur Erhöhung der Leistungsfähigkeit kann ein Memory-Cache konfiguriert werden. Weitere Info
@motu81
motu81 / gist:309b67fa4b048d44d6639da5ffda2232
Created February 15, 2020 20:05
Chilli sin carne 25p
Folgendes Rezept reicht für ca. 25 Menschen und passt in einen 25l Topf.
6 Paprikaschoten (2x3er Pack)
6 Zwiebeln
1/2 Knolle Knoblauch
18 Dosen ganze Tomaten (Abtropfgewicht 400 g) (oder Pizzatomaten in
gleicher Menge: 7,2 L)
500 g Tomatenmark
5 Dosen Mais (Abtropfgewicht 285 g)
12 Dosen Kidney-Bohnen (Abtropfgewicht 250 g)
16:30
------------------------------------------------------------
~ » dig -x 80.190.131.161
; <<>> DiG 9.14.10 <<>> -x 80.190.131.161
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 19392
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
@motu81
motu81 / gist:8c6533a46c045a91fd48461d2d9a41f5
Created August 2, 2019 10:40
sieve vacation rule example
require ["fileinto","variables","vacation"];
# Move spam to spam folder
if header :contains "X-Spam-Flag" "YES" {
fileinto "spam";
# Stop here so that we do not reply on spams
stop;
}
# Store old Subject line so it can be used in vacation message
if header :matches "Subject" "*" {
set "subjwas" ": ${1}";
## WLAN
~ » ip route show
default dev tun0 proto static scope link metric 50
default via 192.168.20.1 dev wlp1s0 proto dhcp metric 600
192.168.10.0/24 via 192.168.100.1 dev tun0 proto static metric 50
192.168.15.0/24 via 192.168.100.1 dev tun0 proto static metric 50
192.168.20.0/24 dev wlp1s0 proto kernel scope link src 192.168.20.26 metric 600
192.168.25.0/24 via 192.168.100.1 dev tun0 proto static metric 50
192.168.35.0/24 via 192.168.100.1 dev tun0 proto static metric 50
192.168.100.0/24 dev tun0 proto kernel scope link src 192.168.100.17 metric 50
@motu81
motu81 / gist:fc0b3fceac925676dcb306ff51dfe359
Created March 22, 2019 13:53
Enable Thunderbird transaction logging IMAP/SMTP on linux
open terminal
type:
export NSPR_LOG_MODULES=IMAP:4,SMTP:4
export NSPR_LOG_FILE=~/tbird.log.txt
thunderbird
@motu81
motu81 / gist:b92b3e7f295721a07d37cbbc43ccbbd4
Created January 10, 2019 18:49
SmartOS on HP Pro Liant Microserver gen10 (dmesg)
January 10, 2019 at 10:40:10 PM UTC
2019-01-10T22:39:23.317879+00:00 98-f2-b3-e6-3d-06 pcplusmp: [ID 805372 kern.info] pcplusmp: pciclass,010601 (ahci) instance 0 irq 0x44 vector 0x43 ioapic 0x0 intin 0x13 is bound to cpu 3
2019-01-10T22:39:23.818553+00:00 98-f2-b3-e6-3d-06 ahci: [ID 432157 kern.warning] WARNING: ahci0: Cannot allocate ports structure
2019-01-10T22:39:23.820017+00:00 98-f2-b3-e6-3d-06 ahci: [ID 405770 kern.info] NOTICE: ahci0: hba AHCI version = 1.30
2019-01-10T22:39:23.820298+00:00 98-f2-b3-e6-3d-06 pcplusmp: [ID 805372 kern.info] pcplusmp: pciclass,010601 (ahci) instance 0 irq 0x44 vector 0x43 ioapic 0x0 intin 0x13 is bound to cpu 0
2019-01-10T22:39:24.321615+00:00 98-f2-b3-e6-3d-06 ahci: [ID 432157 kern.warning] WARNING: ahci0: Cannot allocate ports structure
2019-01-10T22:39:24.322800+00:00 98-f2-b3-e6-3d-06 ahci: [ID 405770 kern.info] NOTICE: ahci0: hba AHCI version = 1.30
2019-01-10T22:39:24.323178+00:00 98-f2-b3-e6-3d-06 pcplusmp: [ID 805372 kern.info] pcplusmp: pciclass,010601 (ahci)
@motu81
motu81 / gist:1c2f1b764ba509de2900c44352b191f2
Last active January 10, 2019 11:24
SmartOS on HP Pro Liant Microserver gen10 (prsinfo, mdb)
disable acpi via grub (edit entry and add):
-B console=...,acpi-user-options=2
psrinfo -vp
The physical processor has 2 virtual processors (0-1)
x86 (AuthenticAMD 660F01 family 21 model 96 step 1 clock 1600 MHz)
AMD Opteron(tm) X3216 APU
@motu81
motu81 / gist:570fe3848aecf2e0b16ac04eb886f0c0
Last active July 7, 2017 20:51
resizing mp4 videos and generate poster .jpg with ffmpg
## rezize videos (change resolution here 854x480)
for i in $(ls p*); do ffmpeg -i $i -vf scale=854:480 $(echo $i | cut -d. -f1)_480p.mp4; done
## generate posters (only from resized files)
for i in $(ls *_480*); do echo ffmpeg -i $i -ss 00:00:14.435 -vframes 1 $(echo $i | cut -d. -f1).jpg; done
# Radicale
## First Steps
Configure radicale Contacts and Calendar with Thunderbird
`user: email@example.com`
Replace user with "public" to create a public calendar
### Thunderbird
[Install SoGo Connector AddOn](http://www.sogo.nu/downloads/frontends.html)
#### SoGo (Adressbook)
Adressbuch->Datei->Neu-> Remote Adressbuch
`https://dav.spot.sh/<user>/addresses.vcf/`