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
// mcs testSendMail.cs -r:System.Data -r:delivery/bin/Ict.Common.IO.dll -r:delivery/bin/Ict.Common.dll -r:delivery/bin/MimeKit.dll | |
using System; | |
using System.Runtime.InteropServices; | |
using System.Threading; | |
using System.Collections; | |
using System.Collections.Specialized; | |
using System.Dynamic; | |
using System.Globalization; |
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
# see https://developers.redhat.com/blog/2016/09/13/running-systemd-in-a-non-privileged-container/ | |
FROM fedora:30 | |
ENV container docker | |
RUN dnf -y install net-tools openssh-server glibc-locale-source passwd | |
RUN mkdir /var/run/sshd | |
# create host ssh key | |
RUN ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N '' | |
# SSH login fix. Otherwise user is kicked off after login |
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
#!/bin/bash | |
path=`pwd` | |
if [ 1 -eq 1 ]; then | |
cd $path/build/Shared | |
echo "**** building `pwd`/ ****" | |
for f in *.cs | |
do | |
sed -i "s/internal/public/g" $f |
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
#!/bin/bash | |
# | |
# lxc: linux Container library | |
# Authors: | |
# Daniel Lezcano <daniel.lezcano@free.fr> | |
# This library is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU Lesser General Public |
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); |