Skip to content

Instantly share code, notes, and snippets.

@fheinle
fheinle / davput.py
Last active March 25, 2023 08:51
Recursive upload with cadaver
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" perform recursive uploads using cadaver
cadaver does not support recursive directory upload.
This script will upload a given path to a given URL
"""
@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
### Keybase proof
I hereby claim:
* I am fheinle on github.
* I am heinlef (https://keybase.io/heinlef) on keybase.
* I have a public key ASBGISMaMV3JV5lAZxiKOogirUxH_mAU9dOG0FTg1gtgnAo
To claim this, I am signing this object:
default partial alphanumeric_keys modifier_keys
xkb_symbols "basic" {
name[Group1]= "English (US)";
key <TLDE> { [ grave, asciitilde ] };
key <AE01> { [ 1, exclam ] };
key <AE02> { [ 2, at ] };
key <AE03> { [ 3, numbersign ] };
key <AE04> { [ 4, dollar ] };
@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"
@fheinle
fheinle / puppetboard.pp
Created December 18, 2017 17:18
Puppet-Manifest mit Kerberos-Auth
```puppet
# install and configure puppetboard
class profiles::puppetboard {
$krb_auth_realm = lookup('profiles::puppetboard::krb_auth_realm', String)
$krb_5keytab = lookup('profiles::puppetboard::krb_5keytab', String)
$servername = lookup('profiles::puppetboard::servername', String, 'first')
class { '::puppetboard':
--- us.distrib 2016-01-22 09:38:25.000000000 +0100
+++ us 2017-05-06 16:53:11.964087368 +0200
@@ -19,19 +19,19 @@
key <AD01> { [ q, Q ] };
key <AD02> { [ w, W ] };
- key <AD03> { [ e, E ] };
+ key <AD03> { [ e, E, EuroSign, EuroSign ] };
key <AD04> { [ r, R ] };
key <AD05> { [ t, T ] };

Keybase proof

I hereby claim:

  • I am fheinle on github.
  • I am heinlef (https://keybase.io/heinlef) on keybase.
  • I have a public key ASDVtEHSOzZavggmPOk8NmQwOvkt0TbGsDuri6JhvAJb6Ao

To claim this, I am signing this object:

@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 / .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