Skip to content

Instantly share code, notes, and snippets.

View pyropeter's full-sized avatar

PyroPeter pyropeter

View GitHub Profile
#0 0x00007fc9b86cf655 in raise () from /lib/libc.so.6
#1 0x00007fc9b86d0ad6 in abort () from /lib/libc.so.6
#2 0x00007fc9b96f5131 in g_assertion_message () from /usr/lib/libglib-2.0.so.0
#3 0x00007fc9b96f56d0 in g_assertion_message_expr ()
from /usr/lib/libglib-2.0.so.0
#4 0x000000000048f22c in signal_unref_full (rec=0x10ce060, remove=1)
at signals.c:64
#5 0x000000000048f4c5 in signal_emit_real (rec=0x10ce060,
params=<value optimized out>, va=<value optimized out>,
first_hook=<value optimized out>) at signals.c:287
@pyropeter
pyropeter / arte-plus-7.sh
Created March 25, 2011 16:00
Downloads videos from Arte+7
#!/bin/bash
set -e
set -u
if [ $# -lt 1 ]; then
echo "Usage: $0 <videoWebpageUrl>"
exit 1
fi
@pyropeter
pyropeter / qrdetect.py
Created August 19, 2012 20:53
My try at QR code detection (unfinished & broken)
import math
import numpy
import cv2
def isPattern(one, two, three, four, five):
if not one:
return
size = float(one + two + three + four + five) / 7
@pyropeter
pyropeter / handler.sh
Last active October 13, 2015 01:57
Embassy of Nerdistan Tuerstatuserkennung
#!/bin/sh
LED='/sys/class/leds/tp-link:green:qss/brightness'
if [ "$BUTTON" != reset ]; then
exit
fi
if [ "$ACTION" = pressed ]; then
echo 0 > /tmp/tuer_offen
@pyropeter
pyropeter / stupidStuff.java
Created February 15, 2013 14:43
Just some strange stuff that apparently works in Java.
import java.util.List;
import java.util.LinkedList;
import java.util.Iterator;
public class Modul1
{
/**
* Diese Methode erhaelt zwei Integer-Iterator-Listen und muss eine
* weitere Integer-Iterator-Liste zurueckgeben. Die beiden Eingaben
* haben beliebige "Formen", allerdings kann man sich darauf verlassen,
@pyropeter
pyropeter / sync
Created January 10, 2014 22:15
Ugly shell script to do a bidirectional sync of two git repos (Like monotones sync command)
#!/bin/bash
set -e
set -u
# this script assumes the following:
# * you want to sync the master[0-9]+ branches
# * you are in a non-bare repo
# * this script runs interactive (maybe not needed?)
# * the remote to sync with is 'origin' and a bare repo
@pyropeter
pyropeter / dial.sh
Last active August 29, 2015 13:56
Script to dial any number using the AVM FritzBox 7360 "Wählhilfe"
#!/bin/bash
set -e
set -u
hostname="$1"
username="$2"
password="$3"
number="$4"
@pyropeter
pyropeter / i3-config
Created February 16, 2017 22:26
i3 screen setup stuff
bindsym XF86Display exec --no-startup-id ~/.i3/setup-screens
-----BEGIN DH PARAMETERS-----
MIIBCAKCAQEA//////////+t+FRYortKmq/cViAnPTzx2LnFg84tNpWp4TZBFGQz
+8yTnc4kmz75fS/jY2MMddj2gbICrsRhetPfHtXV/WVhJDP1H18GbtCFY2VVPe0a
87VXE15/V8k1mE8McODmi3fipona8+/och3xWKE2rec1MKzKT0g6eXq8CrGCsyT7
YdEIqUuyyOP7uWrat2DX9GgdT0Kj3jlN9K5W7edjcrsZCwenyO4KbXCeAvzhzffi
7MA0BM0oNC9hkXL+nOmFg/+OTxIy7vKBg8P+OxtMb61zO7X8vC7CIAXFjvGDfRaD
ssbzSibBsu/6iGtCOGEoXJf//////////wIBAg==
-----END DH PARAMETERS-----
Lorsque le balai du strobesfdsf touche la piste cuivrée (t1), l'entrée D du FF2 monte â "1".
When the strobesfdsf brush touches the coppered track (t1), the D input of FF2 rises to "1".
RC1 assure un flanc "propre" malgré les rebonds de contact.
RC1 ensures a "clean" edge despite the contact bounce.
Lors du premier flanc de ADC aprés RC1, une impulsion, formée par RC2, provoque un presetfdsfds et le moteur est arrêté. (t2)
At the first edge of ADC after RC1, a pulse, formed by RC2, causes a presetfdsfds and the motor is stopped. (T2)