Skip to content

Instantly share code, notes, and snippets.

Avatar

Dirk Krause dirkk0

View GitHub Profile
@dirkk0
dirkk0 / confluence_push.py
Created Oct 14, 2011
pushes content into Confluence as a child of a given ID.
View confluence_push.py
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 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
* 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 Feb 8, 2012
layout.jade for Twitters Bootstrap 2 (kudos httpwww.andyjarrett.co.ukblogindex.cfm20111221layoutjade-for-Twitters-Bootstrap )
View layout.jade
!!!
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 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.
View batch.py
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 Jun 1, 2016
Installing Cloud9 on Amazon EC2
View setup.sh
// 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 Apr 1, 2012
Install Browserquest on Amazon EC2
View gist:2275361
# 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 Jun 15, 2012
owncloud installation on Amazon EC2
View owncloud.sh
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 Sep 2, 2012
Install Browserquest on Amazon EC2 (revisited)
View doit.sh
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 Sep 4, 2012
Install Minecraft on Amazon EC2
View minecraft.sh
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
You can’t perform that action at this time.