Skip to content

Instantly share code, notes, and snippets.

@motu81
motu81 / radicale.xml
Created January 18, 2016 22:24
radicale SMF manifest
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type="manifest" name="radicale">
<service name="application/radicale" type="service" version="1">
<create_default_instance enabled="true"/>
<single_instance/>
<dependency name="network" grouping="require_all" restart_on="refresh" type="service">
<service_fmri value="svc:/milestone/network:default"/>
</dependency>
# 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/`
@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
@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: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: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
## 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: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}";
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: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)