This file contains 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 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
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 |
This file contains 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 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 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 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 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 |
This file contains 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
cd ~ | |
wget -O web2py_src.zip http://web2py.com/examples/static/web2py_src.zip | |
unzip web2py_src.zip | |
echo " | |
PATH = '/home/"`whoami`"/web2py' | |
import os | |
import sys | |
sys.stdout = sys.stderr | |
os.chdir(PATH) | |
if not './' in sys.path[:1]: sys.path.insert(0,'./') |
This file contains 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
sudo apt-get update | |
sudo apt-get -y upgrade | |
sudo apt-get -y install htop unzip | |
sudo apt-get -y install openjdk-7-jre | |
# either get it from a public dropbox: | |
# wget https://dl.dropbox.com/u/123456/myBackup.tar.gz | |
# or curl it from your FTP server | |
# curl --user user:pass ftp://myFtpServer.com/mc/myBackup.tar.gz -o bkp.tar.gz |
This file contains 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
tar czvf "bkp-$(date +%Y%m%d_%H%M%S).tar.gz" minecraft | |
curl --user user:pass -T bkp* ftp://myFtpServer.com | |
mv bkp* bkp-latest.tar.gz | |
curl --user user:pass -T bkp* ftp://myFtpServer.com |