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
# 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/ |
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
# 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' |
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
# 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"') |
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
$ git checkout master | |
$ git merge feature_branch | |
$ git checkout synth | |
$ git merge master | |
$ git checkout master | |
$ git push origin master synth |
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
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', |