Skip to content

Instantly share code, notes, and snippets.

View webwurst's full-sized avatar

Tobias Bradtke webwurst

View GitHub Profile
#!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 / 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 &&\
@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 / 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 / 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')