Skip to content

Instantly share code, notes, and snippets.

@robbi5
robbi5 / matelight-verschwoerhaus.md
Created October 24, 2016 19:15
Matelight im Verschwörhaus

Matelight im Verschwörhaus

Setup Matekisten

Benötigt wird:

  • Matekiste (mit möglichst sauberer Unterseite)
  • Mateflaschen (leer)
  • Alufolie + Tesa
  • WS2811 5v LED-Kette. LEDs einzeln, in "Daumenform" (eBay)
@robbi5
robbi5 / cyberflut.py
Created September 2, 2016 19:12
cyber for pixelflut
from PIL import Image
import socket
import random
#░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
#░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
#░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
#░░░░░░░░░░░▓▓▓▓▓▓▓▓░░▐▓▓▌░░░░░▓▓▌░▐▓▓▓▓▓▓▓▓▓▄░░░▓▓▓▓▓▓▓▓▓▓▌░░▓▓▓▓▓▓▓▓▓▓░░░░░░░░░
#░░░░░░░░░░▓▓▓█░░░░░░░░▓▓▓▄░░▄▓▓▓░░▐▓▓▓░░░░▓▓▓▌░░▓▓▓░░░░░░░░░░▓▓▓░░░░▐▓▓▌░░░░░░░░
#░░░░░░░░░▓▓▓▀░░░░░░░░░░█▓▓▓▓▓▓█░░░▐▓▓▓░░░░▓▓▓▌░░▓▓▓░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▌░░░░░░░░
@robbi5
robbi5 / MATELIGHT.md
Last active August 12, 2017 15:07
matelight with raspberry pi / fadecandy
  • Install the latest Raspbian Jessie Lite on a sd card and put it in your raspberry pi.
  • run sudo raspi-config and change the hostname to matelight. reboot.
  • checkout the latest fadecandy release, move the fcserver-rpi to /usr/local/bin and copy the networked configuration example to /etc
    git clone https://github.com/scanlime/fadecandy
    cd fadecandy
    sudo mv bin/fcserver-rpi /usr/local/bin
    sudo cp examples/config/networked.json /etc/fadecandy.json
    

Keybase proof

I hereby claim:

  • I am robbi5 on github.
  • I am robbi5 (https://keybase.io/robbi5) on keybase.
  • I have a public key whose fingerprint is 5774 FE5E 2293 28FB AA29 B384 9A27 C414 668B C6A2

To claim this, I am signing this object:

@robbi5
robbi5 / parse.awk
Created June 25, 2013 09:44
Parse a wget output for time, day, speed, url, proxy ip and proxy port
BEGIN {
STARTTIME=systime()
}
/--/ {
# $1 = day
# $2 = time
gsub(/--/, "", $1);
gsub(/--/, "", $2);
DAY=$1
TIME=$2
@robbi5
robbi5 / gist:1316770
Created October 26, 2011 15:48
Install Hubot despite of missing npm packages
1. Download hubot-1.0.6.tar.gz from https://github.com/github/hubot/downloads
2. Extract it
3. Download hubot source as tar.gz ("Download as .tar.gz"-Button) from https://github.com/github/hubot/downloads
4. Download hubot-scripts as tar.gz from https://github.com/github/hubot-scripts/downloads
5. Open terminal, cd into your hubot directory from Step 2.
6. run: npm install /path/to/downloaded/github-hubot-v1.0.6-11-gc25ac66.tar.gz && npm install /path/to/downloaded/github-hubot-scripts-v1.0.4-0-g97b9c21.tar.gz
7. run hubot with bin/hubot
@robbi5
robbi5 / quine.js
Created September 5, 2011 07:42
Understanding "impossible to understand Javascript: Obfuscated Quine" from http://blog.oimae.com/
_ = $_ = +[], /* 0 */
$ = +!_, /* 1 */
_$ = !_ + '', /* "true" */
_$$ = !$ + '', /* "false" */
__ = ({}) + '', /* "[object Object]" */
_$_ = ($ / _) + '', /* "Infinity" */
__$ = __[$ + $ + $ + $ + $]; /* "c" */
$_$ = [][__$ + __[$] + _$_[$] + __$ + _$$[$] + _$[_]]; /* function concat() { [native Code] } */
/* -> []["c" + ("[object Object]")[1] + ("Infinity")[1] + "c" + ("false")[1] + ("true")[0] ] */
@robbi5
robbi5 / jpeg-lion.rb
Created July 29, 2011 17:48
homebrew jpeg: no universial binary for Lion
require 'formula'
class Jpeg < Formula
url 'http://www.ijg.org/files/jpegsrc.v8c.tar.gz'
version '8c'
md5 'a2c10c04f396a9ce72894beb18b4e1f9'
homepage 'http://www.ijg.org'
def install
# ENV.universal_binary # not on lion