Skip to content

Instantly share code, notes, and snippets.

Stefan Siegl stesie

Block or report user

Report or block stesie

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
stesie / serverless-azure-functions-auth.patch
Created Oct 9, 2018
Patch against serverless-azure-functions to use credentials from ~/.azure/accessTokens.json
View serverless-azure-functions-auth.patch
diff -ur a/node_modules/serverless-azure-functions/provider/azureProvider.js b/node_modules/serverless-azure-functions/provider/azureProvider.js
--- a/node_modules/serverless-azure-functions/provider/azureProvider.js 2018-10-09 11:53:42.151689784 +0200
+++ b/node_modules/serverless-azure-functions/provider/azureProvider.js 2018-10-09 13:18:20.771792944 +0200
@@ -5,6 +5,8 @@
const resourceManagement = require('azure-arm-resource');
const path = require('path');
const fs = require('fs');
+const os = require('os');
+const msRestAzure = require('ms-rest-azure');
const request = require('request');
stesie /
Created Feb 16, 2017
Shell script to scan pdf, tesseract (ocr) it and create pdf with down-sampled image with text overlay
#!/usr/bin/env bash
set -e
## SCAN settings
FORMAT="-l 0 -t 0 -x 210 -y 297"
postprocess_scan() {
stesie / index.html
Created Apr 1, 2016
AWS IoT-based serverless JS-Webapp Pub/Sub demo
View index.html
<!doctype html>
<meta charset="UTF-8">
<title>AWS IoT Pub/Sub Demo</title>
<h1>AWS IoT Pub/Sub Demo</h1>
<button type="button" id="connect">connect!</button>
View V8JsNodeModuleLoader.php
require_once __DIR__.'/V8JsNodeModuleLoader_FileAccessInterface.php';
require_once __DIR__.'/V8JsNodeModuleLoader_NormalisePath.php';
* Simple Node.js module loader for use with V8Js PHP extension
* This class understands Node.js' node_modules/ directory structure
* and can require modules/files from there.
stesie / config.m4
Last active Aug 29, 2015
PHP get_method/call_method leak?
View config.m4
PHP_ARG_ENABLE(hello, whether to enable Hello
World support,
[ --enable-hello Enable Hello World support])
if test "$PHP_HELLO" = "yes"; then
AC_DEFINE(HAVE_HELLO, 1, [Whether you have Hello World])
PHP_NEW_EXTENSION(hello, hello.c, $ext_shared)
stesie / karma-compile.el
Last active Dec 24, 2015
Little helper for GNU Emacs to "karma run"
View karma-compile.el
(require 'ansi-color)
(defvar karma-buffer
(defun karma-compile ()
"Run Karma"
(shell-command "karma run" (get-buffer-create karma-buffer))
(display-buffer karma-buffer)
(with-current-buffer karma-buffer
stesie / php-doc.el
Last active Apr 24, 2019
php doc block generator/extractor for emacs
View php-doc.el
;;; php-doc.el --- doc block generator/extractor for php
;; Copyright (C) 2010, 2013 Stefan Siegl <>
;; Maintainer: Stefan Siegl <>
;; Author: Stefan Siegl <>
;; Keywords: php docblock
;; Created: 2010
;; Modified: 2013-09-14
;; X-URL:
stesie /
Created Sep 14, 2013
DBus filter to capture notifications on Nokia N900 phone
import gobject
import dbus
from dbus.mainloop.glib import DBusGMainLoop
def msg_filter(_bus, msg):
if msg.get_member() != "Notify": return
args = msg.get_args_list()
print "%s:%s" % (args[3], args[4])
if __name__ == '__main__':
stesie / gbo-to-rss.sed
Last active Dec 23, 2015 to RSS converter written in sed
View gbo-to-rss.sed
#! /bin/sed -nf
# Generate RSS-Feed from
# Copyright (C) 2008,2011 by Stefan Siegl <>
# License: GPLv3+
# Use it like this:
# wget -U "Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20100618 Iceweasel/3.5.9 (like Firefox/3.5.9)" \
# -q -O- "" | gbo-to-rss
stesie /
Created Oct 3, 2012
N900 DBus monitory to increase CPU speed during VoIP calls
#! /usr/bin/python
import gobject
import dbus
import pyinotify
from dbus.mainloop.glib import DBusGMainLoop
class CpufreqController(pyinotify.ProcessEvent):
minfreq = 125000
def getMinfreq(self):
You can’t perform that action at this time.