Skip to content

Instantly share code, notes, and snippets.

Timotheus Pokorra tpokorra

Block or report user

Report or block tpokorra

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View timesheetng_mysqli.patch
--- 2016-04-25 09:40:40.329052075 +0200
+++ 2016-04-25 09:58:47.650099683 +0200
@@ -5,10 +5,14 @@
//Should have plug in compatibility.
function dbConnect() {
+ global $dbh;
- $dbh = mysql_pconnect("$DATABASE_HOST","$DATABASE_USER","$DATABASE_PASS") or die("Unable to connect to SQL server: ". mysql_error());
View NAnt.exe.config
<?xml version="1.0"?>
<!-- Leave this alone. Sets up configsectionhandler section -->
<section name="nant" type="NAnt.Core.ConfigurationSection, NAnt.Core" />
<section name="log4net" type="System.Configuration.IgnoreSectionHandler" />
<!-- Used to indicate the location of the cache folder for shadow files -->
<add key="shadowfiles.path" value="%temp%\nunit20\ShadowCopyCache" />
tpokorra / lxc-pi
Created Jan 20, 2016
lxc container Raspberry Pi
View lxc-pi
# lxc: linux Container library
# Authors:
# Original Debian:
# Daniel Lezcano <>
# Changes for Raspberry Pi by:
# Oliver Heller <>
#!/usr/bin/env python3
import os.path
import sys
from collections import deque
import urllib.request
import re
if len(sys.argv) != 2:
print("Please specify which Kolab version to run this script for. eg. 3.4, or 3.4-updates")
mkdir -p obs/kolab-3.4
cd obs/kolab-3.4
wget $obsurl -O index.html
# see
for f in `cat index.html | grep rpm | grep -Eoi '<a [^>]+>' | grep -Eo 'href="[^\"]+"' | awk -F'"' '{ print $2}'`
wget $obsurl/$f
rm index.html
View indentNamespace.cs
using System;
using System.IO;
using System.Text;
namespace indent
class main
// Process all files in the directory passed in, recurse on any directories
// that are found, and process the files they contain.
service cyrus-imapd start
sleep 3
while read line
kontakte=`kolab list-mailbox-metadata "user/*@$domain" | grep -E "Kontakte|Contact"`
View lxc-centos
# template script for generating CentOS container for LXC
# lxc: linux Container library
# Authors:
tpokorra / lxc-debian-wheezy
Last active Oct 4, 2018
lxc template for debian wheezy to install on Ubuntu precise 12.04 host
View lxc-debian-wheezy
# lxc: linux Container library
# Authors:
# Daniel Lezcano <>
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
tpokorra / upgradeLdifKolab.php
Last active Dec 27, 2015
upgrade ldif data from Kolab 2.3 to Kolab 3.x
View upgradeLdifKolab.php
# Timotheus Pokorra, for, April 2013
# import ldif file that has been dumped from Kolab2
# restoring domains, domain admins, and users
require_once "/usr/share/kolab-webadmin/lib/functions.php";
function debug($msg){
You can’t perform that action at this time.