Skip to content

Instantly share code, notes, and snippets.

@pbt001
pbt001 / kitty.conf
Created October 27, 2018 00:19 — forked from NeoTheFox/kitty.conf
kitty config with solarized dark theme
# vim:fileencoding=utf-8:ft=conf
# Font family. You can also specify different fonts for the
# bold/italic/bold-italic variants. By default they are derived automatically,
# by the OSes font system. Setting them manually is useful for font families
# that have many weight variants like Book, Medium, Thick, etc. For example:
# font_family Operator Mono Book
# bold_font Operator Mono Thick
# bold_italic_font Operator Mono Medium
font_family Hack
@pbt001
pbt001 / .tmux.conf
Created November 16, 2018 10:11 — forked from sijad/.tmux.conf
Terminal
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
set-option -ga terminal-overrides ",xterm-256color:Tc"
set -g default-terminal screen-256color
set -g status-keys vi
@pbt001
pbt001 / buildresticexcludes.sh
Created January 14, 2019 19:36 — forked from Vartkat/buildresticexcludes.sh
Bash script to build a restic exclude list that mimics Apple TimeMachine exclude list
#!/bin/bash
# This script intend to mimic TimeMachine exclude list.
# As the exclude list can evolve between backups it has to be rebuilt before every backup
# Apple uses 5 types of excludes, four from the /System/Library/CoreServices/backupd.bundle/Contents/Resources/StdExclusions.plist file
# and files from applications where metadata says to not backup, these can be found usinf
# sudo mdfind "com_apple_backup_excludeItem = 'com.apple.backupd'"
SYSLOG=/usr/bin/syslog;
TEMPFILE=$1;
@pbt001
pbt001 / imapsync.md
Created January 19, 2019 21:42 — forked from rolfn/imapsync.md
Synchronisation zweier IMAP-Server mit »imapsync«

Synchronisation zweier IMAP-Server mit »imapsync«

Das Programm »imapsync« ist geeignet, zwei IMAP-Server derart zu synchronisieren, dass sich alle oder nur manche E-Mails des Quell-Servers auch auf dem Ziel-Server befinden. Dies kann nützlich sein, wenn man vorhat, künftig einen neuen E-Mail-Server für den eigenen E-Mail-Verkehr zu nutzen und man will dabei nicht auf die alten E-Mails verzichten. Auch kann der Ziel-Server einfach nur dazu dazu dienen, eine Sicherheitskopie aller E-Mails zu speichern.

Im Folgenden wird beschrieben, wie man unter Verwendung des Linux-Dienstes »systemd« zeitlich gesteuert E-Mails von einem IMAP-Server zu einem anderen kopiert.

Festlegen des Zeitablaufs

Die Datei $HOME/.config/systemd/user/mail-sync.timer

version: "3"
networks:
web:
external: true
internal:
external: false
services:
traefik: