Skip to content

Instantly share code, notes, and snippets.

View fgr0's full-sized avatar

Franz Greiling fgr0

  • Leibniz-Gemeinschaft
  • Berlin
View GitHub Profile
@fgr0
fgr0 / .maildrop-lists.conf
Last active May 12, 2019 13:31
Maildrop Configuration for Uberspace
# sorting for mailing lists by using list-id for foldername
# only apply rules if recipient is mailing@domain.tld
if ( $RECIPIENT =~ /.*-(mailing|lists)@.+/ )
{
# check if List-ID is present and use it as a folder name
if ( /^List-ID:.*<(.*)>/:h )
{
LISTID=`echo $MATCH1 | awk -F. '{print $1}'`
@fgr0
fgr0 / _tmutil
Last active January 10, 2023 00:14
zsh autocompletion for macOS tmutil
#compdef tmutil
# Autocompletion for macOS `tmutil`
#
# utility functions
#
# tmutil <verbs>
__tmutil_verbs() {
local -a allverbs
@fgr0
fgr0 / .vimrc
Last active August 29, 2015 14:03
Lightweight vim configuration
""" lightweight vimrc """
"" barebone options (explained) ""
set nocompatible
set nomodeline " Disable Modeline do to security implications
set hidden " Allow unsaved hidden buffers
set ruler " Show current cursor position
set showcmd " Show input for incomplete commands
set showmode " Show current Mode (Insert, Normal, Visual,...)
@fgr0
fgr0 / .vimrc
Last active August 29, 2015 14:03
Bare-bone vim configuration
""" barebone vimrc """
set nocompatible
set noml hid ru sc smd wmnu ai nu hls ic scs
set bs=2 fo=cqr ls=2 shm=at tw=72 ww=<,>,h,l mouse=a ch=2 cb+=unnamed
set statusline=%-3.3n\ %<%.99f%m\ %h%w%r%y%=[%{strlen(&fenc)?&fenc:&enc},%{&fileformat}]%-16(\ %l,%c%V\ %)%P