Skip to content

Instantly share code, notes, and snippets.

View dirkk0's full-sized avatar

Dirk Krause dirkk0

View GitHub Profile
@dirkk0
dirkk0 / confluence_push.py
Created October 14, 2011 13:18
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
dirkk0 / ios-scroll.js
Created December 15, 2011 16:28 — forked from davegurnell/ios-scroll.js
iOS HTML5 Scrollpane
/* iOS scrollpane jQuery plugin, v1.0
* ==================================
*
* (c) 2011 Dave Gurnell
* http://boxandarrow.com
*
* Distributed under the Creative Commons Attribution 3.0 Unported licence:
* http://creativecommons.org/licenses/by/3.0/
*/
@dirkk0
dirkk0 / layout.jade
Created February 8, 2012 16:54
layout.jade for Twitters Bootstrap 2 (kudos httpwww.andyjarrett.co.ukblogindex.cfm20111221layoutjade-for-Twitters-Bootstrap )
!!!
html
head
title= title
link(rel='stylesheet', href='/bootstrap.css')
link(rel='stylesheet', href='/bootstrap-responsive.css')
body
div.navbar.navbar-fixed-top
div.navbar-inner
@dirkk0
dirkk0 / gist:1799210
Created February 11, 2012 12:32
node/npm 0.4.7 on ubuntu 8 server
# 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
dirkk0 / setup.sh
Last active June 1, 2016 11:13
Installing Cloud9 on Amazon EC2
// WARNING - deprecated:
// use this one now: https://gist.github.com/dirkk0/5983271
// kudos to Frederic Cambus
// http://www.cambus.net/setting-up-a-node-js-development-environment-with-npm-and-cloud9-ide-installed-locally/
apt-get install build-essential g++ libssl-dev curl git
apt-get install libxml2-dev
@dirkk0
dirkk0 / gist:2275361
Created April 1, 2012 13:39
Install Browserquest on Amazon EC2
# see http://web3dblog.wordpress.com/2012/03/30/installing-browserquest-on-amazon-ec2/
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'
wget http://nodejs.org/dist/node-v$NODE_VERSION.tar.gz
@dirkk0
dirkk0 / owncloud.sh
Created June 15, 2012 06:00
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
wget http://download.owncloud.org/releases/owncloud-4.0.4.tar.bz2
mv owncloud-4.0.4.tar.bz2 owncloud.tar.bz2
tar -xjf owncloud.tar.bz2
cp -r owncloud /var/www
@dirkk0
dirkk0 / doit.sh
Created September 2, 2012 21:28
Install Browserquest on Amazon EC2 (revisited)
apt-get install -y curl build-essential pkg-config bison git npm nodejs
git clone https://github.com/mozilla/BrowserQuest.git
npm install underscore log bison websocket websocket-server sanitizer memcache
cd BrowserQuest/client
npm install -g http-server
cp -r ../shared .
cd config
@dirkk0
dirkk0 / minecraft.sh
Created September 4, 2012 05:57
Install Minecraft on Amazon EC2
wget https://raw.github.com/flexiondotorg/oab-java6/master/oab-java.sh -O oab-java.sh
chmod +x oab-java.sh
./oab-java.sh
sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get update
sudo apt-get -y install oracle-java7-installer
mkdir minecraft
cd minecraft