Skip to content

Instantly share code, notes, and snippets.

View eduardo-matos's full-sized avatar

Eduardo Matos eduardo-matos

View GitHub Profile
mkdir heroku
cd heroku/
virtualenv --no-site-packages env
source env/bin/activate
pip install bottle gevent
pip freeze > requirements.txt
cat >app.py <<EOF
import bottle
import os
from fabric.api import env, local, require
def deploy():
"""fab [environment] deploy"""
require('environment')
maintenance_on()
push()
syncdb()
migrate()
@eduardo-matos
eduardo-matos / gist:4040675
Created November 8, 2012 18:43 — forked from tjlytle/gist:1293424
SendGrid Configuration for Zend Framework
<?php
$config = array(
'username' => 'sendgridusername',
'password' => 'sendgridpassword',
'auth' => 'plain'
);
$transport = new Zend_Mail_Transport_Smtp('smtp.sendgrid.net', $config);
$mail = new Zend_Mail();