Skip to content

Instantly share code, notes, and snippets.

View ingenieroariel's full-sized avatar

Ariel Núñez ingenieroariel

View GitHub Profile
@briantjacobs
briantjacobs / l8get
Last active August 29, 2015 14:06 — forked from dwtkns/l8get
# This is a shell function to quickly grab the data for a given Landsat 8 tile ID from Google's servers
# For example:
# l8get LC81690352014169LGN00
# The echo at the end is to remind myself of the syntax for extracting bands 8, 4, 3, and 2. (Pansharp, Red, Green, Blue)
# On OSX this would go into your ~/.bash_profile file.
# Requires gsutil from https://developers.google.com/storage/docs/gsutil_install
# Most useful in conjunction with USGS' Earth Explorer: http://earthexplorer.usgs.gov/
# easy_install boto
# You will also need:
# - A .pem keyfile generated using the Amazon web interface to create new instances
# - The secret and access keys created from the
# The only pre-reqs are having created a keypair (.pem file)
# via the amazon web interface and knowing the AWS key and secret
#
# Usage:
# export AWS_ACCESS_KEY_ID='blahblah'
# export AWS_SECRET_ACCESS_KEY='blebleble'
anonymous
anonymous / fabfile.py
Created November 9, 2010 19:07
# easy_install fabric
#
# Usage:
# fab geonode
from fabric.api import env, sudo, run, cd
def setup():
sudo('apt-get -y update')
sudo('apt-get -y dist-upgrade')
sudo('add-apt-repository "deb http://archive.canonical.com/ lucid partner"')
$ git checkout master
$ git merge feature_branch
$ git checkout synth
$ git merge master
$ git checkout master
$ git push origin master synth
class Layer(models.Model):
...
contacts = models.ManyToManyField('Contact') #using the role field to tell the different type of contacts apart
ROLE_VALUES = [
'datasetProvider',
'custodian',
'owner',
'user',