Skip to content

Instantly share code, notes, and snippets.

View cosenmarco's full-sized avatar
🎯
Focusing

Marco Cosentino cosenmarco

🎯
Focusing
View GitHub Profile
@rchamarthi
rchamarthi / s3_copy_operator.py
Created April 5, 2018 21:42
Airflow S3 cross account copy operator
import logging
from tempfile import NamedTemporaryFile
from airflow.exceptions import AirflowException
from airflow.hooks.S3_hook import S3Hook
from airflow.models import BaseOperator
from airflow.utils.decorators import apply_defaults
class S3CopyOperator(BaseOperator):
@jraines
jraines / rails31init.md
Created May 24, 2011 17:03
Rails 3.1 with Rspec, Cucumber, Factory Girl, Haml, and Simple Form

Install Rails 3.1 RC

gem install rails --pre

generate new app, skipping Test::Unit file generation

rails new my_app -T

Set up Gemfile