Skip to content

Instantly share code, notes, and snippets.

@fheinle
fheinle / otl2md.py
Created August 24, 2012 16:20
Convert vim outliner to markdown
#!/usr/bin/env python
# -*- coding:utf-8 -*-
#
""" convert vim outliner files to markdown """
import sys
def count_indent(line):
"""count indentation level
@fheinle
fheinle / wpa_supplicant.conf
Created October 14, 2012 13:06
wpa supplicant sample
ctrl_interface=/var/run/wpa-supplicant
ap_scan=1
network={
ssid="HIER_NETZWERK_NAMEN_EINTRAGEN"
scan_ssid=1
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
group=TKMP
psk="HIERDASKENNWORTEINTRAGEN"
deb http://de.archive.ubuntu.com/ubuntu/ raring main restricted universe multiverse
# deb-src http://de.archive.ubuntu.com/ubuntu/ raring main restricted universe multiverse
deb http://de.archive.ubuntu.com/ubuntu/ raring-updates main restricted universe multiverse
# deb-src http://de.archive.ubuntu.com/ubuntu/ raring-updates main restricted universe multiverse
deb http://de.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse
# deb-src http://de.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu raring-security main restricted universe multiverse
@fheinle
fheinle / lightdm-gtk-greeter-ubuntu.conf
Created May 2, 2013 00:42
LightDM-Konfiguration mit Bluebird-Theme und Faenza-Icons
#
# background = Background file to use, either an image path or a color (e.g. #772953)
# theme-name = GTK+ theme to use
# font-name = Font to use
# xft-antialias = Whether to antialias Xft fonts (true or false)
# xft-dpi = Resolution for Xft in dots per inch (e.g. 96)
# xft-hintstyle = What degree of hinting to use (hintnone, hintslight, hintmedium, or hintfull)
# xft-rgba = Type of subpixel antialiasing (none, rgb, bgr, vrgb or vbgr)
# show-language-selector (true or false)
#
@fheinle
fheinle / owncloud-backup.sh
Last active June 16, 2016 17:15
owncloud-backup.sh
#!/bin/bash
# Configuration
# Backups will look like
# $BACKUPDEST/{calendar,contacts}_$CALENDAR_ID-$DATE.{vcf,ics}
DATE=`date +"%y-%m-%d_%H%M"`
BACKUPDEST=/some/path
# Enter your credentials here
HTTPUSER=florian
@fheinle
fheinle / rsnapshot-excludes
Last active December 22, 2015 08:58
Konfiguration für rsnapshot im Heimverzeichnis
VirtualBox VMs/
.cache/
.dbus/
.gvfs/
.local/share/gvfs-metadata/
.local/share/Trash/
@fheinle
fheinle / anacrontab
Created September 5, 2013 10:06
anacron für rsnapshot-Backups
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
1 5 user.daily nice run-parts --report /home/florian/.config/anacron/cron.daily
7 10 user.weekly nice run-parts --report /home/florian/.config/anacron/cron.weekly
30 30 user.monthly nice run-parts --report /home/florian/.config/anacron/cron.monthly
@fheinle
fheinle / .profile
Created September 5, 2013 10:10
Aufruf von anacron beim Login
/usr/sbin/anacron -t /home/florian/.config/anacron/anacrontab -S /home/florian/.config/anacron/spool/ &> /home/florian/.cache/anacron.log
@fheinle
fheinle / .bashrc
Created March 28, 2014 12:48
automatisch Screen starten für SSH-Verbindungen
if [ ! "$TERM" == "screen" ] && [ "$SSH_TTY" != '' ]; then
screen -x -S sshscreen || screen -S sshscreen
fi
@fheinle
fheinle / keepass.desktop
Created August 20, 2014 18:50
KeePass startup script
[Desktop Entry]
Name=KeePass
GenericName=Passwortspeicher
Comment=Autostart KeePass with password from keyring
Exec=/home/florian/.bin/keepass.sh
Terminal=false
Type=Application
Icon=keepassx
Categories=Network;FileTransfer;
StartupNotify=false