Skip to content

Instantly share code, notes, and snippets.

View lukas-buergi's full-sized avatar

Lukas Bürgi lukas-buergi

View GitHub Profile
@lukas-buergi
lukas-buergi / TODO
Created December 9, 2012 19:47
Web comic downloader
To do:
High priority:
Updating instead of downloading everything
Low priority:
Maybe add some numbering capabilities in comicsClass.populate instead of just in comicsClass.populatePages?
Add the possibility to use Beautiful Soup to get the values from the html?
/dev/sdh1:
Magic : a92b4efc
Version : 00.90.00
UUID : 7f599700:b35189a1:bae3ca27:aeeaa62f (local to host lukas-desktop)
Creation Time : Thu Oct 28 18:09:21 2010
Raid Level : raid1
Used Dev Size : 1953511360 (1863.01 GiB 2000.40 GB)
Array Size : 1953511360 (1863.01 GiB 2000.40 GB)
Raid Devices : 2
Total Devices : 2
t4b@desktop:~$ sudo mdadm --detail --scan
/dev/md0:
Version : 0.90
Creation Time : Thu Oct 28 18:09:21 2010
Raid Level : raid1
Array Size : 1953511360 (1863.01 GiB 2000.40 GB)
Used Dev Size : 1953511360 (1863.01 GiB 2000.40 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 0
@lukas-buergi
lukas-buergi / draw2Dfunction.py
Created August 29, 2012 15:07
draw2Dfunction
import FreeCAD, FreeCADGui, Part
import math
def evalFunction(suppliedFunction, n):
"""This function uses eval to evaluate suppliedFunction.
It does in no way check whether suppliedFunction is evil, thus it is itself evil!
"""
return eval(suppliedFunction)
t4b@t4b-desktop:~$ gdb prgm/overgrowth/Overgrowth/overgrowth.bin.x86_64
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
t4b@t4b-desktop:~$ gdb prgm/overgrowth/Overgrowth/overgrowth.bin.x86_64
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
t4b@t4b-desktop:~$ gdb prgm/overgrowth/Overgrowth/overgrowth.bin.x86_64
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
$ prgm/overgrowth/Overgrowth/overgrowth.bin.x86_64
prgm/overgrowth/Overgrowth/overgrowth.bin.x86_64: /usr/lib/libjpeg.so.62: no version information available (required by prgm/overgrowth/Overgrowth/overgrowth.bin.x86_64)
RGBA bits, depth: 8 8 8 8, 24
Anti-aliasing samples: 4
32 texture units supported.
GL_MAX_VERTEX_UNIFORM_COMPONENTS: 4096
0 SDL joysticks found
Hardware threads: 2
*****************
Calculating detail textures
@lukas-buergi
lukas-buergi / checkSession.php
Created June 26, 2012 13:18
Check whether sessions work in php
<?php
error_reporting( E_ALL );
ini_set( 'display_errors', 1);
if(!isset($_GET['action'])){
die('Param is missing. Look at the <a href="https://gist.github.com/2995743">source</a>.');
}
switch($_GET['action']) {
$wgCaptchaQuestions[] = array( 'question' => "Wie lange dauert es traditionsgemäss, bis eine bestellte Pandora ankommt?<br/>(Hinweis: In Monaten anzugeben, à la \"x Monate\", Neuzugänge finden im Forum oder im IRC channel sicher Hilfe)<br/>", 'answer' => "2 Monate" );
$wgCaptchaQuestions[] = array( 'question' => "Wie heisst EvilDragon wirklich?<br/>(Hinweis: Sucht ein bisschen, er betreibt auch den shop.gp2x.de, im Wiki findet sich die Information auch)<br/>", 'answer' => "Michael Mrozek" );
$wgCaptchaQuestions[] = array( 'question' => "Was ist die Bildschirmauflösung der Pandora?<br/>(Hinweis: Anzugeben nach dem Schema \"xauflösung x yauflösung\". Findet sich im Wiki schon irgendwo...)<br/>", 'answer' => "800 x 480" );