Kind of continue from the other gist how to install LAMP on an Amazon AMI
##Install git
sudo yum install git-core
##Create ssh directory since it doesn't exists by default on the Amazon AMI
#!/usr/bin/env python | |
import getpass | |
import os | |
import sys | |
## Application specific | |
SDK_DIR = '/usr/local/google_appengine' | |
APP_DIR = '/home/username/src/app' | |
APPID = 'something-awesome' |
#!/usr/bin/python | |
# An interactive console for App Engine apps | |
# Usage: ./appengine_console.py app_id [host] | |
import code | |
import getpass | |
import sys | |
sys.path.append("/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine") |
application: zip-site | |
version: main | |
runtime: python | |
api_version: 1 | |
handlers: | |
- url: /.* | |
script: main.py |
from __future__ import with_statement | |
import functools | |
import os | |
import sys | |
from fabric.api import * | |
from fabric.colors import green, red, green | |
import datetime | |
import re |
application: you-app-name-here | |
version: 1 | |
runtime: python | |
api_version: 1 | |
default_expiration: "30d" | |
handlers: | |
- url: /(.*\.(appcache|manifest)) | |
mime_type: text/cache-manifest |
def _get_notes(prev_tag, next_tag): | |
with hide('stdout'): | |
commits = run("git log --graph --pretty=format:'%h - %s (%cr by %an)%d' " | |
+ "--abbrev-commit --date=relative"+ " %s..%s" | |
% (prev_tag, next_tag)).splitlines() | |
commits.pop() # prev_tag went out with the previous release notes. | |
commits.reverse() # order going down with time | |
commits = "\n".join(commits) | |
commits = re.sub(r"\\",r"__SUB__", commits) | |
commits = re.sub(r"/",r"\\", commits) |
#!/bin/bash | |
# | |
# Build a virtual environment suitable for running appengine. | |
# This uses virtualenvwrapper to make the virtual environment. | |
# Which you can activate with 'workon appengine' | |
# | |
# Everyone loves one-liners! | |
# Mac one-liner: | |
# $ curl -s https://raw.github.com/gist/1012769 | bash | |
# |
# encoding: utf-8 | |
class DotDict(dict): | |
def __init__(self, *a, **kw): | |
dict.__init__(self, *a, **kw) | |
for key in self: | |
self._validate_key(key) | |
def _validate_key(self, key): |
Kind of continue from the other gist how to install LAMP on an Amazon AMI
##Install git
sudo yum install git-core
##Create ssh directory since it doesn't exists by default on the Amazon AMI
#!/usr/bin/env python | |
import getopt | |
import os | |
import ae | |
import sys | |
import code | |
def usage(): | |
print """ |