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
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
# 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
from tinydb import TinyDB, where | |
db = TinyDB('stack.json') | |
print db.insert({'type': 'job', 'cmd': 'tweet', 'txt': 'Heya!', 'prio': 1}) | |
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, |
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
# https://github.com/SachaG/Telescope | |
######################## | |
# it should be | |
sudo apt-get install git npm | |
curl https://install.meteor.com | /bin/sh | |
sudo npm install -g meteorite |
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
""""Create "The Matrix" of binary numbers scrolling vertically in your terminal. | |
original code adapted from juancarlospaco: | |
- http://ubuntuforums.org/showpost.php?p=10306676 | |
Inspired by the movie: The Matrix | |
- Corey Goldberg (2013) | |
Requires: |
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 newer node | |
sudo apt-get install python-software-properties | |
sudo add-apt-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install nodejs npm | |
sudo apt-get install --yes build-essential; | |
sudo apt-get install curl screen |