Skip to content

Instantly share code, notes, and snippets.

@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
@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 / 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 / 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

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 / 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
    
@robbi5
robbi5 / cyberflut.py
Created September 2, 2016 19:12
cyber for pixelflut
from PIL import Image
import socket
import random
#░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
#░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
#░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
#░░░░░░░░░░░▓▓▓▓▓▓▓▓░░▐▓▓▌░░░░░▓▓▌░▐▓▓▓▓▓▓▓▓▓▄░░░▓▓▓▓▓▓▓▓▓▓▌░░▓▓▓▓▓▓▓▓▓▓░░░░░░░░░
#░░░░░░░░░░▓▓▓█░░░░░░░░▓▓▓▄░░▄▓▓▓░░▐▓▓▓░░░░▓▓▓▌░░▓▓▓░░░░░░░░░░▓▓▓░░░░▐▓▓▌░░░░░░░░
#░░░░░░░░░▓▓▓▀░░░░░░░░░░█▓▓▓▓▓▓█░░░▐▓▓▓░░░░▓▓▓▌░░▓▓▓░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▌░░░░░░░░
@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)
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 49 columns, instead of 8. in line 3.
ISO 3166-2,2013-01,2013-02,2013-03,2013-04,2013-05,2013-06,2013-07,2013-08,2013-09,2013-10,2013-11,2013-12,2014-01,2014-02,2014-03,2014-04,2014-05,2014-06,2014-07,2014-08,2014-09,2014-10,2014-11,2014-12,2015-01,2015-02,2015-03,2015-04,2015-05,2015-06,2015-07,2015-08,2015-09,2015-10,2015-11,2015-12,2016-01,2016-02,2016-03,2016-04,2016-05,2016-06,2016-07,2016-08,2016-09,2016-10,2016-11,2016-12
n/a,29255,27000,30116,30324,30435,31435,35194,32878,32261,31907,27792,29806,30832,27159,26868,25248,25935,25722,28138,26607,25677,26893,21858,23310,24628,21762,27083,24850,26555,25906,27912,26969,25595,25833,23913,25149,26171,25187,26619,25653,26254,26190,27846,29390,27469,22671,22862,22964
DE-BW,10783,11309,12836,14924,14016,14425,18235,15755,17043,17848,16418,14936,17544,15703,19329,19452,19353,17839,20420,17190,19221,21014,19573,19251,25795,23139,27499,23252,20503,24413,30248,24027,25059,28349,26264,24977,31405,31487,33522,33653,30893,34449,33283,32250,33565,32385,33570,31590
DE-BY,10502,8929,9097,10182,9580,10054,1238
@robbi5
robbi5 / readme.md
Last active July 13, 2018 09:39
chrome headless on uberspace7

chrome headless on uberspace7

cd ~/tmp

download and extract chrome

wget -O chrome-linux.zip https://download-chromium.appspot.com/dl/Linux_x64?type=snapshots
unzip chrome-linux.zip