Skip to content

Instantly share code, notes, and snippets.

View dm8tbr's full-sized avatar

Thomas B. Ruecker dm8tbr

View GitHub Profile

Keybase proof

I hereby claim:

  • I am dm8tbr on github.
  • I am tbr (https://keybase.io/tbr) on keybase.
  • I have a public key whose fingerprint is F44E 00C9 E48C A556 84A1 7A4D 7E45 4A3B D564 6069

To claim this, I am signing this object:

@dm8tbr
dm8tbr / paho-iphb.patch
Last active August 29, 2015 14:04
A quick and simple patch to ensure select() times out within 10s
diff --git a/src/paho/mqtt/client.py b/src/paho/mqtt/client.py
index a28c81f..4dce403 100755
--- a/src/paho/mqtt/client.py
+++ b/src/paho/mqtt/client.py
@@ -39,6 +39,10 @@ try:
import dns.resolver
except ImportError:
HAVE_DNS = False
+from ctypes import *
+iphb = CDLL("libiphb.so.0.0.0")
input {
file {
path => "/var/log/icecast/access.*"
type => "icecast"
start_position=>"beginning" # this be to import old logs
}
}
filter {
if [type] == "icecast" {
### Keybase proof
I hereby claim:
* I am dm8tbr on github.
* I am tbr (https://keybase.io/tbr) on keybase.
* I have a public key whose fingerprint is F44E 00C9 E48C A556 84A1 7A4D 7E45 4A3B D564 6069
To claim this, I am signing this object:
@dm8tbr
dm8tbr / radvdump-sonera-vdsl-20150915.txt
Created September 15, 2015 09:30
RA dump on Sonera VDSL on 2015-09-15
# received by interface eth1
#
interface eth1
{
AdvSendAdvert on;
# Note: {Min,Max}RtrAdvInterval cannot be obtained with radvdump
AdvManagedFlag off;
AdvOtherConfigFlag on;
AdvReachableTime 0;
@dm8tbr
dm8tbr / yp.cgi
Created September 15, 2015 15:02
YP code for bitrate
// Bitrate
if (isset($_REQUEST['b']) && !empty($_REQUEST['b']))
$bitrate = clean_string($_REQUEST['b']);
else if (isset($_REQUEST['bitrate']) && !empty($_REQUEST['bitrate']))
$bitrate = clean_string($_REQUEST['bitrate']);
else
{
$x = str_replace(";", "&", urldecode(substr(strrchr(file_get_contents('php://input'), "&"), 1)));
parse_str ($x , $hack);
if (isset($hack['quality']))
@dm8tbr
dm8tbr / gist:26834c87063ffedb35be
Created November 20, 2015 19:43
configure of 2.4.1 respin
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
@dm8tbr
dm8tbr / at86rf233.dtsi
Created July 20, 2016 14:58
DTSI for AT86RF233 and BBB
/* AT86RF233 on SPI1 */
/* D1 Output and D0 Input */
/ {
compatible = "ti,beaglebone", "ti,beaglebone-black", "ti,am335x-bone";
/* identification */
part-number = "spi1mux";
fragment@0 {
@dm8tbr
dm8tbr / build.log
Last active January 15, 2017 21:27
Qt 5.8 RC1 build failure on AArch64 (updated to output of "-j1")
This file has been truncated, but you can view the full file.
[ 0s] Using BUILD_ROOT=/var/cache/obs/worker/root_7/.mount
[ 0s] Using BUILD_TARGET=/var/cache/obs/worker/root_7/.mount/target
[ 0s] Using BUILD_ARCH=aarch64
[ 0s] Doing kvm build in /var/cache/obs/worker/root_7/root
[ 0s]
[ 0s]
[ 0s] obsworker2 started "build qtbase.spec" at Sun Jan 15 20:04:47 UTC 2017.
[ 0s]
[ 0s] Building qtbase for project 'home:tbr:branches:mer:core:testing' repository 'latest_aarch64' arch 'aarch64' srcmd5 'ad411071c2111e23565fac4436139c0f'
[ 0s]
@dm8tbr
dm8tbr / build.log
Last active January 15, 2017 21:48
Qt 5.8 RC1 build failure on AArch64 -- specific parts
[ 0s] Using BUILD_ROOT=/var/cache/obs/worker/root_7/.mount
[ 0s] Using BUILD_TARGET=/var/cache/obs/worker/root_7/.mount/target
[ 0s] Using BUILD_ARCH=aarch64
[ 0s] Doing kvm build in /var/cache/obs/worker/root_7/root
[ 0s]
[ 0s]
[ 0s] obsworker2 started "build qtbase.spec" at Sun Jan 15 20:04:47 UTC 2017.
[ 0s]
[ 0s] Building qtbase for project 'home:tbr:branches:mer:core:testing' repository 'latest_aarch64' arch 'aarch64' srcmd5 'ad411071c2111e23565fac4436139c0f'
[ 0s]