Skip to content

Instantly share code, notes, and snippets.

View rohieb's full-sized avatar
penguining around

Roland Hieber rohieb

penguining around
View GitHub Profile
rohieb / eventdistr.lua
Last active December 19, 2015 08:18
Wireshark dissector for the EVENTDISTR protocol. Just paste this into $HOME/.wireshark/init.lua and restart Wireshark. References: * Example Dissectors: * Wireshark Lua API:
-- Wireshark dissector for the EVENTDISTR protocol
-- The specification is at
-- Copyright (C) 2013 Roland Hieber <>
-- This program is free software; you can redistribute it and/or modify it
-- under the terms of the GNU General Public License, version 3, as published
-- by the Free Software Foundation.
-- This program is distributed in the hope that it will be useful, but WITHOUT
<?xml version="1.0" encoding="utf-8"?>
<mlt LC_NUMERIC="en_US.UTF-8" version="0.9.8" root="/home/rohieb/tmp" title="avformat:newfile.mp4">
<profile description="automatic" width="352" height="288" progressive="1" sample_aspect_num="1" sample_aspect_den="1" display_aspect_num="352" display_aspect_den="288" frame_rate_num="25" frame_rate_den="1" colorspace="601"/>
<producer id="producer0" in="0" out="250">
<property name="mlt_type">producer</property>
<property name="length">251</property>
<property name="eof">pause</property>
<property name="resource">newfile.mp4</property>
<property name="">2</property>
<property name="">video</property>
// ==UserScript==
// @name block wikimedia fundraising notice
// @namespace wmfb
// @include **
// @include **
// @include **
// @include **
// @include **
// @include **
// @include **
rohieb /
Created December 13, 2015 19:22

House (also called House, M.D.) is an American television medical drama that originally ran on the Fox network for eight seasons, from November 16, 2004 to May 21, 2012. The show's main character is Dr. Gregory House (Hugh Laurie), a pain medication-dependent, unconventional, misanthropic medical genius who leads a team of diagnosticians at the fictional Princeton–Plainsboro Teaching Hospital (PPTH) in New Jersey. The show's premise originated with Paul Attanasio, while David Shore, who is credited as creator, was primarily responsible for the conception of the title character. The show's executive producers included Shore, Attanasio, Attanasio's business partner Katie Jacobs, and film director Bryan Singer. It was filmed largely in Century City.

rohieb / NetworkManager connection
Last active September 15, 2016 02:23
SielNet 802.1X
# NetworkManager WiFi connection
# change all paths, put this into
# /etc/NetworkManager/system-connections/SielNet, without these first comment
# lines, and set file permissions to user root:root, mode 600 (readable only for
# root). You may need to restart NetworkManager afterwards.
rohieb /
Created June 10, 2016 15:17
copy etherpad contents
target_pad=sandkastennonexistent ## FIXME: change this to your needs.
urlescape() {
perl -MURI::Escape -e 'while(<STDIN>){print uri_escape($_)};'
~/Videos/untrunc (master) $ make
/usr/bin/qmake -o Makefile
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DVERBOSE -DVERBOSE1 -DQT_NO_DEBUG -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4 -I-I/usr/local/lib -I. -o main.o main.cpp
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DVERBOSE -DVERBOSE1 -DQT_NO_DEBUG -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4 -I-I/usr/local/lib -I. -o atom.o atom.cpp
atom.cpp: In destructor ‘Atom::~Atom()’:
atom.cpp:17:26: warning: deleting object of polymorphic class type ‘Atom’ which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
delete children[i];
atom.cpp: In member function ‘void Atom::parse(File&)’:
atom.cpp:46:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
rohieb /
Last active May 1, 2019 19:53
IBR-DTN on OpenWRT on the Raspberry Pi

OpenWRT image for Raspberry Pi with IBR-DTN.

Steps to reproduce:

(This is an abridged version of OpenWRT Buildroot – Installation and Usage)

  1. Get a fast machine with at least ~10 GB of free space.
  2. For Raspberry Pi 1 and 2, you can use the latest release, 15.05 “Chaos Calmer”:
    • git clone git:// openwrt
    • cd openwrt
rohieb /
Last active July 31, 2016 03:54
IBR-DTN with PTXDist on Raspberry Pi

This is a very compressed version of How to become a PTXdist Guru.

PTXdist is a build system to reproducably build Linux distributions from source. DistroKit is a Board Support Package for embedded systems, using PTXdist.

  1. get a fast machine with at least ~15 GB of free space
  2. install PTXDist, version 2016.07.0
  3. install the OSELAS.Toolchain, version 2014.12.x for arm-v7a-linux-gnueabihf
  4. git clone
  5. cd DistroKit-rpi-ibrdtn
  6. optionally, ptxdist menuconfig to select software to build