Skip to content

Instantly share code, notes, and snippets.

View lukas-buergi's full-sized avatar

Lukas Bürgi lukas-buergi

View GitHub Profile
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/>...
@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@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
/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
@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?
@lukas-buergi
lukas-buergi / latex2png.sh
Last active August 8, 2016 11:20
converts latex to .png
#!/bin/bash
# converts latex to .png. It doesn't do this directly, there are temporary files saved in $dir
# To make a LaTeX-Document suitable for this, you should include
# \pagestyle{empty}
# or there will be loads of whitespace around the thing you actually want.
# Usage:
# latex2png file [density]
# file: latex file
@lukas-buergi
lukas-buergi / netmount.py
Last active December 21, 2015 13:18
A script which mounts everything in /media of one or several remote machines into a local folder (by default /media). It adds a prefix to the stuff which is mounted to avoid conflicts.
#!/usr/bin/python3.3
import argparse, os, subprocess
#settings
setting_hostList=['agathe','a10','lukas-c', 'dummy']
addresses={ 'agathe':'192.168.1.2',
'a10':'192.168.1.21',
'lukas-c':'192.168.1.3',
'dummy':'192.168.1.15'}
usernames={ 'agathe':'t4b',
@lukas-buergi
lukas-buergi / flachenbrandIA.tex
Created June 28, 2014 11:32
Flächenbrand Inhaltsangabe - Creative Commons Attribution-ShareAlike 4.0 International License
\documentclass[a4paper,12pt]{article}
\usepackage[ngerman]{babel}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage[utf8x]{inputenc}
\usepackage{graphicx}
\usepackage{calc}
%\usepackage[cm]{fullpage}
\usepackage{fullpage}
@lukas-buergi
lukas-buergi / trackball.sh
Created May 6, 2016 19:50
Sets up 2d scroll for trackball
#!/bin/bash
# use xinput to get hardware id, xinput --list-props id to get order of
# hardware buttons for your mouse
# hardware software
# 1 large one left left click
# 2 both large ones middle click
# 3 large one right right click
# 4 trackball down scroll up
# 5 trackball up scroll down