Skip to content

Instantly share code, notes, and snippets.

View schinken's full-sized avatar

Christopher Schirner schinken

View GitHub Profile
View UT210E_mods.ino
#include <Wire.h>
const int I2C_ADDR = 0x50;
void dumpEEPROM(bool dumpAsCode = false)
{
for (int i = 0; i < 256; i++) {
const byte eepromByte = readByte(I2C_ADDR, i);
if (dumpAsCode)
{
View login.py
#!/usr/bin/python2
import subprocess
import requests
import sys
import re
login_url = 'http://....'
login_user = 'foobar'
login_pass = '123123123'
@schinken
schinken / gist:9f953e0cf19feadfb89a
Created October 19, 2015 08:21 — forked from mtwhitley/gist:e2b04f5a034fac617d9c
FastLED Fire 2012 Demo (2 Strips)
View gist:9f953e0cf19feadfb89a
#include <FastLED.h>
#define DATA_PIN 3
#define CLOCK_PIN 2
#define DATA_PIN_2 7
#define CLOCK_PIN_2 6
#define CHIPSET APA102
#define NUM_LEDS 144
#define BRIGHTNESS 100
View gist:5dd5f3d01a4b841470d2
Ft_ccc-bamberg-2015-04-28.jpg
Ft_ankuendigung-repaircafe-2015-04-25.jpg
Ft_SaferInternetDay.pdf
Ft_ankuendigung-tdot-2015.jpg
Feki.de_Der_backspace_-_Bamberger_Hacker_laden_ein.pdf
View .bashrc
function fuck() {
killall -9 $2;
if [ $? == 0 ]
then
echo
echo " (╯°□°)╯︵$(echo $2|flip &2>/dev/null)"
echo
fi
}
View keybase.md

Keybase proof

I hereby claim:

  • I am schinken on github.
  • I am schinken (https://keybase.io/schinken) on keybase.
  • I have a public key whose fingerprint is FFB7 E40D B2DD D24C C9B7 B5C5 703C F8B8 882C 871E

To claim this, I am signing this object:

@schinken
schinken / gist:5781953
Created June 14, 2013 13:51
the combination of filter and first-letter{ text-transform: uppercase; } lets IE8 and IE9 crash! :>
View gist:5781953
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<style>
.trwurst {
width: 200px;
height: 40px;
border: 1px solid red;
View python_conversion.md

Python Number Conversion Chart

From To Expression
View gist:5221331
import requests
from flask import Flask
app = Flask(__name__)
@app.route("/")
def toggle():
url = 'https://webrelais.bckspc.de/relais/3'
if requests.get(url).json()['response']:
requests.delete(url)
else:
View gist:5221330
import requests
from flask import Flask
app = Flask(__name__)
@app.route("/")
def toggle():
url = 'https://webrelais.bckspc.de/relais/3'
if requests.get(url).json()['response']:
requests.delete(url)
else: