Skip to content

Instantly share code, notes, and snippets.


Dirk Krause dirkk0

View GitHub Profile
dirkk0 /
Created Oct 14, 2011
pushes content into Confluence as a child of a given ID.
import sys, urllib, urllib2
class Pusher:
def __init__(self, url, username, password, baseId, tokenId):
self.url = url
self.username = username
self.password = password
self.baseId = baseId
dirkk0 / ios-scroll.js
Created Dec 15, 2011 — forked from davegurnell/ios-scroll.js
iOS HTML5 Scrollpane
View ios-scroll.js
/* iOS scrollpane jQuery plugin, v1.0
* ==================================
* (c) 2011 Dave Gurnell
* Distributed under the Creative Commons Attribution 3.0 Unported licence:
dirkk0 / layout.jade
Created Feb 8, 2012
layout.jade for Twitters Bootstrap 2 (kudos )
View layout.jade
title= title
link(rel='stylesheet', href='/bootstrap.css')
link(rel='stylesheet', href='/bootstrap-responsive.css')
dirkk0 / gist:1799210
Created Feb 11, 2012
node/npm 0.4.7 on ubuntu 8 server
View gist:1799210
# ubuntu updates and installs
sudo apt-get update; sudo apt-get upgrade --yes;
sudo apt-get install --yes curl;
sudo apt-get install --yes build-essential;
sudo apt-get install --yes libssl-dev; sudo apt-get install --yes pkg-config;
sudo apt-get install --yes git-core git;
# important! run as super user.
import threading
batch = "t1 t2 t3 t4".split()
def advanceCue():
if batch:
print batch.pop()
# for i in (1,2,3,4):
# advanceCue()
dirkk0 /
Last active Jun 1, 2016
Installing Cloud9 on Amazon EC2
// WARNING - deprecated:
// use this one now:
// kudos to Frederic Cambus
apt-get install build-essential g++ libssl-dev curl git
apt-get install libxml2-dev
dirkk0 / gist:2275361
Created Apr 1, 2012
Install Browserquest on Amazon EC2
View gist:2275361
# see
apt-get update
apt-get upgrade
apt-get install --yes build-essential g++ libssl-dev curl git-core
apt-get install --yes libxml2-dev libssl0.9.8
export NODE_VERSION='0.6.8'
dirkk0 /
Created Jun 15, 2012
owncloud installation on Amazon EC2
apt-get install --yes apache2 php5 php5-json php5-gd php5-sqlite curl libcurl3 libcurl3-dev php5-curl php5-common php-xml-parser
apt-get install --yes sqlite mp3info zip
mv owncloud-4.0.4.tar.bz2 owncloud.tar.bz2
tar -xjf owncloud.tar.bz2
cp -r owncloud /var/www
dirkk0 /
Created Sep 2, 2012
Install Browserquest on Amazon EC2 (revisited)
apt-get install -y curl build-essential pkg-config bison git npm nodejs
git clone
npm install underscore log bison websocket websocket-server sanitizer memcache
cd BrowserQuest/client
npm install -g http-server
cp -r ../shared .
cd config
dirkk0 /
Created Sep 4, 2012
Install Minecraft on Amazon EC2
wget -O
chmod +x
sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get update
sudo apt-get -y install oracle-java7-installer
mkdir minecraft
cd minecraft
You can’t perform that action at this time.