Skip to content

Instantly share code, notes, and snippets.

View tgherzog's full-sized avatar

Tim Herzog tgherzog

View GitHub Profile
@ushu
ushu / S3 buckets copy.md
Created October 29, 2013 16:12
Copy between S3 buckets w/ different accounts

This is a mix between two sources:

basically the first resource is great but didn't work for me: I had to remove the trailing "/*" in the resource string to make it work. I also noticed that setting the policy on the source bucket was sufficient. In the end these are the exact steps I followed to copy data between two buckets on two accounts

Basically the idea there is:

  • we allowe the destination account to read the source bucket (in the console for the source account)
  • we log as the destination and start the copy
@seanh
seanh / gist:3414107
Created August 21, 2012 09:54
Basic Orientation to CKAN (for developers)

Basic Orientation to CKAN (for developers)

Some of the most important layers in the CKAN code architecture, going from lowest-level up to highest-level:

##Database

CKAN uses SQLAlchemy (http://www.sqlalchemy.org/) to handle communication between CKAN source code and the PostgreSQL database (http://www.postgresql.org/).

Model

@kindly
kindly / apache virtual host.
Created May 24, 2012 15:50
Sample apache configuration for running ckan side by side with drupal.
<VirtualHost *:80>
ServerName test.ckan.org
ServerAlias test.ckan.org localhost
#Drupal instance
DocumentRoot /var/www/drupal
DirectoryIndex index.phtml index.html index.php index.htm
# CKAN lives under /data
WSGIScriptAlias /data /dir/to/wsgi.py