Skip to content

Instantly share code, notes, and snippets.

View webwurst's full-sized avatar

Tobias Bradtke webwurst

View GitHub Profile
@webwurst
webwurst / gist:1174536
Created August 26, 2011 22:04
Gremlin - nestedLeafs, nestedAll
// Tree-Structure from https://gremlin-users.googlegroups.com/attach/eb75b39c6330a874/Simple+Tree.png?pli=1&view=1&part=4
g = new TinkerGraph()
A = g.addVertex('A')
B = g.addVertex('B')
g.addEdge(A, B, 'child')
C = g.addVertex('C')
g.addEdge(A, C, 'child')
D = g.addVertex('D')
@webwurst
webwurst / flaskr.py
Created March 6, 2012 11:09
This is the Flaskr-Tutorial using CouchDB instead of sqlite. For the original Tutorial see http://flask.pocoo.org/docs/tutorial/.
# -*- coding: utf-8 -*-
"""
Flaskr
~~~~~~
A microblog example application written as Flask tutorial with
Flask and couchdbkit.
:copyright: (c) 2010 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
@webwurst
webwurst / pyside_webkit_javascript.py
Created March 26, 2012 08:01
PySide/WebKit/Javascript
import sys
from PySide.QtCore import QObject, Slot
from PySide.QtGui import QApplication
from PySide.QtWebKit import QWebView
html = """
<html>
<body>
<h1>Hello!</h1><br>
@webwurst
webwurst / Dockerfile
Last active January 11, 2018 17:05 — forked from henrik-muehe/Dockerfile
# Fake a fuse install
# from https://gist.github.com/henrik-muehe/6155333/e35981031bad80ada4cbf1e4a48ba7f86a019db4
# see https://github.com/dotcloud/docker/issues/2191
run apt-get install libfuse2
run cd /tmp &&\
apt-get download fuse &&\
dpkg-deb -x fuse_* . &&\
dpkg-deb -e fuse_* &&\
rm fuse_*.deb &&\
echo -en '#!/bin/bash\nexit 0\n' > DEBIAN/postinst &&\
#!ipxe
set base-url http://alpha.release.core-os.net/amd64-usr/current
kernel ${base-url}/coreos_production_pxe.vmlinuz sshkey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAYQC2PxAKTLdczK9+RNsGGPsz0eC2pBlydBEcrbI7LSfiN7Bo5hQQVjki+Xpnp8EEYKpzu6eakL8MJj3E28wT/vNklT1KyMZrXnVhtsmOtBKKG/++odpaavdW2/AU0l7RZiE= coreos pxe demo"
initrd ${base-url}/coreos_production_pxe_image.cpio.gz
boot
@webwurst
webwurst / collectd-overview
Created August 27, 2014 14:08
Kibana dashboard to drill through your collectd logs
{
"title": "collectd-overview",
"services": {
"query": {
"list": {
"8": {
"id": 8,
"color": "#508642",
"alias": "",
"pin": false,
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "http://json-schema.org/geojson/geojson.json#",
"title": "Geo JSON object",
"description": "Schema for a Geo JSON object",
"type": "object",
"required": [ "type" ],
"oneOf": [
{ "$ref": "#/definitions/geometry" },
{ "$ref": "#/definitions/geometryCollection" },
@webwurst
webwurst / systemd-ubuntu.md
Last active October 30, 2016 03:30
systemd-ubuntu
@webwurst
webwurst / README.md
Last active August 29, 2015 14:22
Example to test open-events/data-hub
$ sudo docker-compose up

# event-input-form
$ xdg-open http://localhost:5000/static/index.html

# kibana
$ xdg-open http://localhost:5601/
@webwurst
webwurst / docker-compose.yml
Created June 14, 2015 16:22
[wip] tyk/docker-compose.yml
gateway:
image: tykio/tyk-gateway
ports:
- "8080:8080"
links:
- redis
- mongo
dashboard:
image: tykio/tyk-dashboard