Skip to content

Instantly share code, notes, and snippets.


Dirk Krause dirkk0

View GitHub Profile
dirkk0 / gist:b474e1218dcc02025e25
Created Jul 7, 2015
Compiling Gear VR native apps on Ubuntu 14.04
View gist:b474e1218dcc02025e25
I couldn't find a decent installation tutorial how to set up the Oculus SDK on the Ubuntu command line, so I created one.
This blog helped me a lot:
I didnt't triple check this, so if there are problems, please bear with me.
If there is any interest, I can go in more detail and create a 'do-all' script.
a) Install Android:
View gist:9b325888a268a595bfce
sudo apt-get install --yes build-essential curl git unzip
# install java
sudo apt-get -y install openjdk-7-jdk
# make exports persistent
echo "export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64" >> ~/.bashrc
echo "export PATH=\${PATH}:\${JAVA_HOME}/bin" >> ~/.bashrc
source ~/.bashrc
# install 32-bit dependencies
dirkk0 / main.cpp
Last active Feb 10, 2020
Basic SDL2 OpenGL application
View main.cpp
// code nicked mainly from here:
/* to compile
### installation on ubuntu
# install compiler etc
sudo apt-get install --yes software-properties-common g++ make
# install sdl2
dirkk0 /
Created Mar 19, 2015
install phonegap/cordova on ubuntu12/ec2
# always a good idea
sudo apt-get update
# just to make sure
sudo apt-get curl git
# install latest node
sudo add-apt-repository --yes ppa:chris-lea/node.js
sudo apt-get update
dirkk0 /
Last active Aug 29, 2015
Using the jsontemplate engine (or, the beauty of python)
# via
import jsontemplate
import json
# load template
template = open('test_template.html', 'r').read()
# load data
data = json.loads(open('test_data.json', 'r').read())
dirkk0 /
Created Mar 11, 2015
Read Trello API by board, list, card
# pip2 install trello
import pprint
pp = pprint.PrettyPrinter(indent=4)
import credentials
key = credentials.key
dirkk0 /
Last active Aug 29, 2015
Installing ppnet/ppnet-proxy on EC2/Ubuntu14
sudo apt-get update
sudo apt-get -y install couchdb
# curl http://localhost:5984
sudo apt-get install -y python-software-properties
sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install -y nodejs
View heydey.html
body {
margin: 0;
padding: 0;
background-color: #000000;
dirkk0 / heydey.js
Created Nov 15, 2014
Isometric tiles in pixi.js
View heydey.js
var w = 600
var h = 380
var stage = new PIXI.Stage(0x66FF99);
var renderer = PIXI.autoDetectRenderer(w, h);
var n = 12; // CHANGE THIS
View redirect.html
<meta http-equiv="refresh" content="0;url=">
Attempting to redirect to <a href=""></a>.
You can’t perform that action at this time.