Skip to content

Instantly share code, notes, and snippets.

View erlehmann's full-sized avatar

Intentionally left blank erlehmann

View GitHub Profile
@erlehmann
erlehmann / 2pktfkt-mirror.py
Created October 12, 2011 20:01
This program downloads logs from 2pktfkt.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# 2pktfkt-mirror Copyright (C) 2011 Nils Dagsson Moskopp (erlehmann)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
@erlehmann
erlehmann / FreeNode-#nodrama.de-2011-Jun-10-missing-fragment.log
Created June 10, 2011 23:32
Fehlendes Logfragment im FreeNode-Kanal #nodrama am 10. Juni 2011 gegen 19:50
Jun 10 19:48:02 <plomlompom> sva, du kombst doch zum Camp?
Jun 10 19:48:03 <erlehmann> plomlompom, falls johl fragt, warum sein wertvoller link nicht ankam: softwarefehler. eine linkliste wurde bisher nie neu generiert.
Jun 10 19:48:49 <plomlompom> erlehmann, du hast jetzt nicht echt eine automagische Update-Brücke von EtherPad zu Website geschrieben?
Jun 10 19:49:16 <erlehmann> plomlompom, haha, nö. das wäre manisches programmieren.
Jun 10 19:49:18 <sva> dridde: \o/
Jun 10 19:49:23 <erlehmann> oder magisches programmieren? ich bin nicht sicher.
Jun 10 19:49:28 <sva> dridde: das waere super-nice!
Jun 10 19:49:47 <sva> plomlompom: neee. in istrien bin ich schon immer wieder gewesen
Jun 10 19:49:55 <sva> und klar komme ich zum camp :)
Jun 10 19:50:09 <sva> allerdings wohl nicht wie geplant 2 wochen vorher + 2 wochen hinterher
@erlehmann
erlehmann / ipy_user_conf.py
Created May 10, 2011 03:46
git-aware shell configuration for ipython
# -*- coding: utf-8 -*-
# Copyright (c) 2011 Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net>
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
@erlehmann
erlehmann / localstorage.html
Created December 15, 2010 00:59
Beispiel für die Verwendung von localStorage
<!DOCTYPE html>
<meta charset="utf-8">
<title>Beispiel für die Verwendung von localStorage</title>
<h1>Ewige Blumenkraft</h1>
<input id="∞">
<p>
Der Inhalt des obigen Eingabefelds wird gespeichert und wieder hergestellt, falls dein Browser <a href="http://www.w3.org/TR/webstorage/#the-localstorage-attribute"><code>localStorage</code></a> unterstützt.
@erlehmann
erlehmann / audio-tag-beispiel.html
Created December 12, 2010 19:51
Beispiel für die Verwendung des HTML5-Audio-Tags
<!DOCTYPE html>
<title>Beispiel für die Benutzung des Audio-Elements in HTML5</title>
<audio controls>
<source src="elvis.mp3">
<source src="elvis.oga">
<a href="elvis.mp3">Download (mp3)</a>
<a href="elvis.oga">Download (Ogg Vorbis)</a>
</audio>
* {
color: rgba(255, 0, 0, 0.5);
text-shadow: -0.3636em -0.2727em 0 rgba(0, 0, 255, 0.5);
}
// KrautZip
// Copyright (c) 2010 Berlinbernd
// Released under the GNU Lesser General Public License
// http://www.gnu.org/copyleft/lgpl.html
//
// ==UserScript==
// @name KrautZip
// @namespace http://dieweltistgarnichtso.net
// @description Zip redundant content.
// @include http://krautchan.net/*
import zlib
sentences = [
'Vor einem Jahr habe ich mir fuer ca. 300 Euro die Casio Exilim Kamera gekauft.',
'Ich bonerte und sturbierte, bis mein Sack leer war. MEIN SACK MEIN SACK MEIN SACK',
'SAGE SAGE SAGE SAGE SAGE SAGE SAGE SAGE SAGE SAGE SAGE SAGE SAGE SAGE SAGE SAGE'
]
for s in sentences:
schau, es ist ein eigenes git-repository