Skip to content

Instantly share code, notes, and snippets.

version: "3"
networks:
web:
external: true
internal:
external: false
services:
traefik:
@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

@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 / .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 / 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 / 1-macOS-10.14-mojave-setup.md
Last active January 15, 2019 10:26 — forked from kevinelliott/1-macOS-10.14-mojave-setup.md
[macOS 10.14 Mojave Mostly-Automated Setup] #pub #dotfile #cfg #automation #macos #brew #mas

To support my open-source work, consider adding me on Patreon.

macOS 10.14 Mojave Mostly-Automated Setup

An easy to refer to document for regularly setting up macOS 10.14 Mojave.

Controversy

The topic of recipe-based frequent fresh reinstalls of macOS is a controversial issue. Some people are against reinstalling macOS, citing that they have never had an issue with Apple provided upgrade installs.

@shihanng
shihanng / .chunkwmrc
Last active January 6, 2024 04:17
chunkwm + skhd
#!/bin/bash
#
# NOTE: specify the absolutepath to the directory to use when
# loading a plugin. '~' expansion is supported.
#
chunkc core::plugin_dir /usr/local/opt/chunkwm/share/chunkwm/plugins
#
@halhen
halhen / codes.csv
Last active February 18, 2024 22:49
The people who keep us company - dataviz
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 1 column, instead of 2 in line 7.
code;name
01;Personal Care Activities
0101;Sleeping
0102;Grooming
0103;Health-related self care
0104;Personal Activities
0105;Personal Care Emergencies
0199;Personal care, n.e.c.*
02;Household Activities
0201;Housework
@rldotai
rldotai / Makefile
Last active November 23, 2020 20:59
A makefile for LaTeX and Skim on OS X
PDFLATEX = pdflatex -interaction=batchmode -synctex=1
SH = /bin/bash
ASCRIPT = /usr/bin/osascript
SOURCE = master.tex
BASE = "$(basename $(SOURCE))"
default : pdf view
.PHONY: pdf graphics
@SpotlightKid
SpotlightKid / clone-gists.py
Last active February 8, 2025 15:46
Clone all gists of GitHub username given on the command line.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Clone all gists of GitHub user with given username.
Clones all gist repos into the current directory, using the gist id as the
directory name. If the directory already exists as a git repo, try to perform a
'git pull' in it.
"""