Skip to content

Instantly share code, notes, and snippets.

View sja's full-sized avatar

Sebastian Janzen sja

  • innoQ Deutschland GmbH
  • Odenthal
View GitHub Profile
@sja
sja / config.json
Created May 27, 2017 19:42
Homie Eingang
{
"HOST": "x.x.x.x",
"PORT": 1883,
"KEEPALIVE": 10,
"USERNAME": "",
"PASSWORD": "",
"CA_CERTS": "",
"DEVICE_ID": "eingang",
"DEVICE_NAME": "Eingang Lampe und Kamera",
"TOPIC": "homie"
@sja
sja / # qt5 - 2016-10-05_09-20-46.txt
Created October 5, 2016 07:52
qt5 on macOS 10.12 - Homebrew build logs
Homebrew build logs for qt5 on macOS 10.12
Build date: 2016-10-05 09:20:46
@sja
sja / bug.sh
Created May 12, 2016 13:10
Debian deleted all files?
root@pine64pro:/opt/openhab# apt-get remove openjdk-*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'openjdk-jre' for regex 'openjdk-*'
Note, selecting 'openjdk-8-source' for regex 'openjdk-*'
Note, selecting 'openjdk-6-jdk' for regex 'openjdk-*'
Note, selecting 'openjdk-7-jre-zero' for regex 'openjdk-*'
Note, selecting 'openjdk-6-jre-headless' for regex 'openjdk-*'
Note, selecting 'openjdk-7-jdk' for regex 'openjdk-*'

Keybase proof

I hereby claim:

  • I am sja on github.
  • I am sja (https://keybase.io/sja) on keybase.
  • I have a public key whose fingerprint is 244F BDBB 4C2F C022 222D 2701 B8B0 67FC CB67 E6C4

To claim this, I am signing this object:

@sja
sja / gist:ba184e3ae1e601bb499a
Created June 15, 2014 09:10
OS X Asterisk startup problem
sudo ./sbin/asterisk -fvc
Password:
Asterisk 12.2.0, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Running as user 'asterisk'
@sja
sja / asterisk-12.2
Created May 27, 2014 11:47
Telephony-Dev-Box log
INFO global: Vagrant version: 1.6.2
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_EXECUTABLE="/Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.6.2/bin/vagrant"
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/Applications/Vagrant/bin/../embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_DETECTED_OS="Darwin"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1"
@sja
sja / yhWt.log
Created March 6, 2014 08:16
Router Backdoor
20 Feb 17:14:19 - Starting Honeypot for router backdoor "TCP32764"...
20 Feb 17:14:19 - Honeypot is running at 32764
20 Feb 17:14:19 - Found 1 pseudo configurations.
20 Feb 17:14:24 - Resolved public ip to 5.147.72.205
24 Feb 19:12:50 - 79.119.143.37:3154 - Connecting...
24 Feb 19:12:50 - 79.119.143.37:3154 - Client joined...
24 Feb 19:12:50 - 79.119.143.37:3154 - Ignore 'blablablabla' request, maybe this is a test by 'poc.py'.
24 Feb 19:12:50 - 79.119.143.37:3154 - Reverse DNS: '79-119-143-37.rdsnet.ro'
79.119.143.37:3154 - ERROR: { [Error: read ECONNRESET] code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }
@sja
sja / gist:7977504
Created December 15, 2013 20:09
Wie 'new' und 'strict mode' zusammenhängen.
console.clear();
/*
In both functions below, MyObj has the same declaration, but if they're called as strict or non-strict depends on the place where it's defined.
*/
(function() {
console.log("Without strict mode:");
var MyObj = function (name) {
@sja
sja / gist:7789544
Last active December 30, 2015 06:29
Cannot compile app_mongodb
root@pbx:/usr/src/app_mongodb# make
gcc -w -g -pthread -pipe -g3 -O6 -fPIC -DMONGO_HAVE_STDINT -DAST_MODULE=\"app_mongodb\" -c -I/usr/include/ -I/usr/local/include/ -I/opt/asterisk/include/ -I../mongo-c-driver/src/ -o build/app_mongodb.o src/app_mongodb.c
src/app_mongodb.c: In function ‘mongodb_callerid’:
src/app_mongodb.c:120:26: error: dereferencing pointer to incomplete type
src/app_mongodb.c:150:7: error: dereferencing pointer to incomplete type
src/app_mongodb.c:151:16: error: dereferencing pointer to incomplete type
src/app_mongodb.c:152:7: error: dereferencing pointer to incomplete type
make: *** [build/app_mongodb.o] Error 1
root@pbx:/usr/src/app_mongodb# lsb_release -a
@sja
sja / gist:5488859
Created April 30, 2013 13:53
Convert Ext.extend to Ext.define and add new Files to jso.xml
#!/usr/bin/ruby
# Convert Ext.extend to Ext.define and add new Files to jso.xml
# Input:
# class=Ext.extend(parent, {body})
# Ext.reg(alias, class)
# Output:
# Ext.define('class', {extend: 'parent', alias:'alias', body})
# @author Sebastian Janzen <sebastian.janzen@hl-services.de>
jsoTpl = '<js>/hlx/module/administration/editor/fields/%s</js>'