Skip to content

Instantly share code, notes, and snippets.

@bajansen
bajansen / prosody-c470ip.md
Created July 5, 2020 13:14
Allowing prosody to work with (spec-breaking) Gigaset C470IP's XMPP client

The XMPP client in Gigaset's C470IP (and possible other devices) does not send an 'id' attribute while requesting the roster at login. The resulting error thrown by prosody in turn makes the device immediately disconnect.

In core/stanza_router.lua comment out the following three lines:

elseif not stanza.attr.id then
	origin.send(st.error_reply(stanza, "modify", "bad-request", "Missing required 'id' attribute"));
	return;

This allows the C470IP to connect.

@bajansen
bajansen / 02-ipv6block.conf
Last active December 30, 2018 15:31
DNSmasq config to circumvent Netflix and Ziggo VPN/region blocks when using a he.net tunnelbroker IPv6 tunnel.
# Add these lines to your dnsmasq.conf or include it as a separate file
# Block Netflix and Ziggo GO AAAA lookups
server=/netflix.com/#
address=/netflix.com/::
server=/netflix.net/#
address=/netflix.net/::
server=/nflxext.com/#
address=/nflxext.com/::
server=/nflximg.net/#
address=/nflximg.net/::
@bajansen
bajansen / ihex2bin.bashrc
Created October 11, 2017 11:02
Convert Intel hex file to plain binary
function ihex2bin { cut -c 10- $1 | sed 's/...$//' | tr -d '\n' | xxd -r -p > $1.bin; }
export -f ihex2bin

Keybase proof

I hereby claim:

  • I am bajansen on github.
  • I am bajansen (https://keybase.io/bajansen) on keybase.
  • I have a public key ASCM6PKnccMGdGhyeBzaNQ5VVBCVtNTt3boifWeaKUckIgo

To claim this, I am signing this object: