Skip to content

Instantly share code, notes, and snippets.

View pansapiens's full-sized avatar

Andrew Perry pansapiens

  • Melbourne, Australia
View GitHub Profile
@pansapiens
pansapiens / gae_json_rest.py
Created January 27, 2010 11:22 — forked from gerad/gae_json_rest.py
turn google app engine to a big json db in the cloud
from google.appengine.ext import webapp
from google.appengine.ext.webapp import util
from django.utils import simplejson as json
from google.appengine.ext import db
import re
import pdb, sys
debugger = pdb.Pdb(stdin=sys.__stdin__, stdout=sys.__stdout__)
@pansapiens
pansapiens / ec2unifiedshell.py
Created January 20, 2010 04:45 — forked from anonymous/ec2unifiedshell.py
script to connect to all of your running EC2 instances, and to provide a single SSH prompt
#!/usr/bin/python
WhatThisIS="""
This is a hacked together script to connect to all of your running EC2 instances, and to provide a single SSH prompt amongst all of them, and to assist in uploading, splitting, and downloading files. email me at winniningham at and email server called gmail.com :P
"""
import paramiko
from numpy import *
@pansapiens
pansapiens / gist:204861
Last active July 24, 2019 19:07
Django template for RFC-822 time format used in RSS feeds
<!--
Django template snippet that gives the current time,
as an "RFC-822 compliant" date-time suitable for RSS feeds.
Of course, you will probably never need to use this, since
generating RSS feeds via Django templates isn't the best way ...
you should use the Django feed syndication framework instead
( https://docs.djangoproject.com/en/dev/ref/contrib/syndication/ )
-->