This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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/ | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import threading | |
batch = "t1 t2 t3 t4".split() | |
def advanceCue(): | |
if batch: | |
print batch.pop() | |
# for i in (1,2,3,4): | |
# advanceCue() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
OlderNewer