This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ Page Language="C#" src="session.aspx.cs" %> | |
<html xmlns="www.w3.org/1999/xhtml"> | |
<%@ Import Namespace="System.Threading" %> | |
<head runat="server"> | |
<title></title> | |
</head> | |
<body> | |
<div> | |
<% | |
Response.Write( "Hello World<br/>"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# can be used to generate a mock db for profiling purposes | |
# we want our script to generate a consistent output, to do so | |
# we monkey patch array sample so it always uses the same rng | |
class Array | |
RNG = Random.new(1098109928029800) | |
def sample | |
self[RNG.rand(size)] | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import MySQLdb | |
import os | |
import shutil | |
# KnowledgeTree default place to store documents | |
ktdocument = '/var/www/ktdms/Documents/' | |
conn = MySQLdb.connect(user='', passwd='',db='', charset="utf8", use_unicode=True) | |
cursor = conn.cursor() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -z "$1" ] | |
then | |
echo "$0 <user> <domain> <folder>" | |
echo "for example: $0"' "my.user" mydomain.com "Anfragen"' | |
echo "for a deleted mailbox: $0"' "test.test" test.tbits.net "test" "test" 1' | |
exit | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require __DIR__ . '/vendor/autoload.php'; | |
use AbcAeffchen\Sephpa\SephpaCreditTransfer; | |
$xmlstring = file_get_contents("201704.xml"); | |
$executiondate ='2017-05-08'; | |
$creationdate='2017-05-05:T00:38:44'; | |
$records = new SimpleXMLElement($xmlstring, LIBXML_NOCDATA); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Note: this only works if you are able to modify /etc/os-release! | |
# for some reason, we cannot build on CentOS7, but only if we pretend to be Ubuntu 16.04! | |
Name: msbuild | |
Version: 15.1 | |
Release: 1%{?dist} | |
Summary: The Microsoft Build Engine is a platform for building applications. | |
License: MIT | |
URL: https://github.com/Microsoft/msbuild |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
branch=Kolab16 | |
# we need a fully qualified domain name | |
hostnamectl set-hostname $branch.demo.example.org | |
yum install -y wget which bzip2 mailx selinux-policy-targeted | |
# disable SELinux | |
sed -i 's/enforcing/permissive/g' /etc/selinux/config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pykolab | |
from pykolab.translate import _ | |
from pykolab import utils | |
log = pykolab.getLogger('pykolab.cli') | |
conf = pykolab.getConf() | |
def run(): | |
from pykolab import wap_client | |
wap_client.authenticate() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- mysql.db.inc.orig 2016-04-25 09:40:40.329052075 +0200 | |
+++ mysql.db.inc 2016-04-25 09:58:47.650099683 +0200 | |
@@ -5,10 +5,14 @@ | |
//Should have plug in compatibility. | |
function dbConnect() { | |
+ global $dbh; | |
$GLOBALS["CONNECTED_MYSQL_DB_INC"] = 1; | |
global $DATABASE_HOST, $DATABASE_USER, $DATABASE_PASS, $DATABASE_DB; | |
- $dbh = mysql_pconnect("$DATABASE_HOST","$DATABASE_USER","$DATABASE_PASS") or die("Unable to connect to SQL server: ". mysql_error()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<configuration> | |
<!-- Leave this alone. Sets up configsectionhandler section --> | |
<configSections> | |
<section name="nant" type="NAnt.Core.ConfigurationSection, NAnt.Core" /> | |
<section name="log4net" type="System.Configuration.IgnoreSectionHandler" /> | |
</configSections> | |
<appSettings> | |
<!-- Used to indicate the location of the cache folder for shadow files --> | |
<add key="shadowfiles.path" value="%temp%\nunit20\ShadowCopyCache" /> |