Skip to content

Instantly share code, notes, and snippets.

@christophlsa
christophlsa / webserver.c
Created November 16, 2011 20:42
homework for the study
/* webserver.c */
#include <cnaiapi.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdbool.h>
#include <sys/stat.h>
#include <fcntl.h>
<html>
<head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="https://raw.github.com/caleb531/jcanvas/master/jcanvas.js"></script>
<script type="text/javascript">
function draw () {
var obj = {
layer: true,
fillStyle: '#00FF00',
@christophlsa
christophlsa / gebietsversammlung.txt
Created July 10, 2012 23:27
Gebietsversammlungen wie ich es mag
§ 9 - Organe des Landesverbands
(1) Organe sind der Vorstand, der Landesparteitag, das Landesschiedsgericht, die Gebietsversammlung, die Aufstellungsversammlung und die Gründungsversammlung.
(...)
§ 9c - Gebietsversammlung
@christophlsa
christophlsa / fetchmdr.py
Last active May 25, 2018 06:42
Ausführbefehl und encoding
#!/usr/bin/python
# -*- coding: utf-8 -*-
import urllib.request, re, argparse, math, sys
import xml.etree.ElementTree as ET
from operator import itemgetter
parser = argparse.ArgumentParser(description='Extrahiert die URLs der Dateien eines Videos aus der MDR Mediathek')
parser.add_argument('urls', help='Eine Liste von URLs zu den Videos in der MDR Mediathek', nargs='+')
parser.add_argument('-d', '--download', action='store_true', help='größtes Video herunterladen')
#!/usr/bin/python
# -*- coding: utf-8 -*-
from email.parser import Parser
import os, re, csv, argparse, sys
class EMailBounce(object):
def __init__(self, filename):
self.Delivery_status = {}
self.Recipient = ''
@christophlsa
christophlsa / Aufzeichnung.txt
Created October 14, 2013 20:15
Audacity Batchprocess (~/.audacity-data/Chains/Aufzeichnung.txt)
TruncateSilence: Db="-70 dB" Minimum=200 Duration=2000 Compress=10,000000
Compressor: Threshold=-35,000000 NoiseFloor=-70,000000 Ratio=10,000000 AttackTime=0,100000 DecayTime=1,000000 Normalize=yes UsePeak=yes
#!/usr/bin/python
from gi.repository import Gtk, GLib, Pango
from time import sleep
import threading
import random
class PyRandomWindow(Gtk.Window):
def __init__(self):
from twitter import *
import json
"""
{
"CONSUMER_KEY": "",
"CONSUMER_SECRET": "",
"OAUTH_TOKEN": "",
"OAUTH_SECRET": ""
}
diff -upr a/app/main/event/_list.lua b/app/main/event/_list.lua
--- a/app/main/event/_list.lua 2014-04-05 18:47:30.379024179 +0200
+++ b/app/main/event/_list.lua 2014-04-05 18:49:46.651024196 +0200
@@ -207,7 +207,7 @@ filters.content = function()
text = _"Show older events",
module = request.get_module(),
view = request.get_view(),
- id = for_unit and for_unit.id or for_area and for_area.id,
+ id = for_unit and for_unit.id or for_area and for_area.id or for_member and for_member.id,
params = {

Keybase proof

I hereby claim:

  • I am christophlsa on github.
  • I am synex (https://keybase.io/synex) on keybase.
  • I have a public key whose fingerprint is A9D7 973E 448F 921D B96F 1673 FEF2 F3A2 15C7 C0C9

To claim this, I am signing this object: