Tyring to get rid of my ever-opened tabs.
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 |
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 time | |
from boto import ec2 | |
it = 't1.micro' | |
# it = 'm1.small' | |
ami = "ami-137bcf7a" # ubuntu 12.04 | |
instance_name = "myInstance" | |
security_group = "quicklaunch-0" | |
# elastic_ip = "1.2.3.4" |
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
# install the youtube-uploader. Get it here: | |
# http://code.google.com/p/youtube-upload/wiki/Readme | |
# - create a folder uploads | |
# - copy your wmv's to this folder | |
# - create a batch file or call this script like this | |
# ./doit.sh "The title as it appears on Youtube" | |
# The video will be private at first (see the --private flag). | |
# Also set the proper category tag. |
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
# Thanks to Joe McCann for Dillinger!!!!! | |
# https://github.com/joemccann/dillinger | |
# this script doesn't work just by itself, you need to | |
# insert uris and keys that get created by heroku, dropbox and github | |
####### heroku ###### | |
# install heroku toolbelt | |
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh |
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
# found at http://blog.dispatched.ch/2009/03/15/webscraping-with-python-and-beautifulsoup/ | |
import urllib | |
import urllib2 | |
import string | |
import sys | |
from BeautifulSoup import BeautifulSoup | |
user_agent = 'Mozilla/5 (Solaris 10) Gecko' | |
headers = { 'User-Agent' : user_agent } |
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
# -*- coding: utf-8 -*- | |
""" | |
Builds epub book out of Paul Graham's essays: http://paulgraham.com/articles.html | |
Author: Ola Sitarska <ola@sitarska.com> | |
This script requires python-epub-library: http://code.google.com/p/python-epub-builder/ | |
""" | |
import re, ez_epub, urllib2, genshi |
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
{ | |
"metadata" : | |
{ | |
"formatVersion" : 3.2, | |
"type" : "scene", | |
"sourceFile" : "", | |
"generatedBy" : "Blender 2.65 Exporter", | |
"objects" : 3, | |
"geometries" : 1, |