Steps with explanations to set up a server using:
- virtualenv
- Django
- nginx
- uwsgi
class GAEHandler(logging.Handler): | |
""" | |
Logging handler for GAE DataStore | |
""" | |
def emit(self, record): | |
from google.appengine.ext import db | |
class Log(db.Model): | |
name = db.StringProperty() |
#!/usr/bin/env bash | |
# Usage: | |
# ./git_move.sh git@repo_site.com:/my_repo.git origin/folder/path/ /destination/repo/path/ new/folder/path/ | |
repo=$1 | |
folder=$2 | |
dest_repo=$3 | |
dest_folder=$4 | |
clone_folder='__git_clone_repo__' |
lang en_US | |
langsupport en_US | |
keyboard us | |
timezone Etc/UTC | |
text | |
install | |
skipx | |
halt | |
# Ridiculous URL... I know... |
#!/usr/bin/env perl | |
# Parameters supported: | |
# | |
# config | |
# autoconf | |
# | |
# Magic markers: | |
#%# family=auto | |
#%# capabilities=autoconf |
update-rc.d logstash-shipper defaults | |
update-rc.d logstash-reader defaults |
#!/bin/bash | |
# node.js using PPA (for statsd) | |
sudo apt-get install python-software-properties | |
sudo apt-add-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install nodejs npm | |
# Install git to get statsd | |
sudo apt-get install git |