Skip to content

Instantly share code, notes, and snippets.

Dave Paola dpaola2

View GitHub Profile
View gist:549779
fab clean:stage
fab deploy:production
fab deploy:
View gist:549781
STAGE = ''
View gist:549787
def _resolve_host(func):
def resolve(host, *args, **kwargs):
if host in HOSTS:
return func(HOSTS[host], **kwargs)
return func(host, *args, **kwargs)
return resolve
dpaola2 /
Created Nov 14, 2011 — forked from testac/
pyrocfile - 100 line Procfile manager in Python
# Pyrocfile - Simple Python impementation of Procfile manager
# Written by Chris Testa ( in 2011
# Released in the Public Domain
import argparse, logging, os.path, random, re, select, signal, subprocess
def _new_logger(name, color=None):
logger = logging.getLogger(name)
hdlr = logging.StreamHandler()
color, end_color = '\033[9%dm' % (color or random.randint(1, 6)), '\033[0m'
View gist:1641838
Building native extensions. This could take a while...
ERROR: Error installing capybara-webkit:
ERROR: Failed to build gem native extension.
/Users/dpaola2/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
Gem files will remain installed in /Users/dpaola2/.rvm/gems/ruby-1.9.2-p290/gems/capybara-webkit-0.7.2 for inspection.
Results logged to /Users/dpaola2/.rvm/gems/ruby-1.9.2-p290/gems/capybara-webkit-0.7.2/./gem_make.out
View gist:1773759
course-name: How to build a URL shortener
other-metadata: foobar
author: dave paola
name: chapter 1
markdown: chapters/
command: rspec whatever.rspec
name: chapter 2
View gist:1880324
~ $ cat config/
database.yml .env
~ $ cat config/database.yml
require 'cgi'
require 'uri'
uri = URI.parse(ENV["DATABASE_URL"])
View gist:1996624
# common()
rake db:migrate
# production
maintenance mode on
git push heroku master
maintenance mode off
View gist:2024773

I think these are the things we should be thinking and talking about post-LAUNCH:

  1. Revenue and pricing model -- free users behave very differently than paying users, and we need to ensure we're keeping both types in mind. We need to be very careful that we aren't optim
    izing around our free users.
  2. Customer acquisition -- collecting data about 60 uniques per day is not enough. We need 6000, or 60,000. Not unrealistic. Codecademy has millions of users -- we need to kick their ass.
    Making product decisions around a small number of free
View awesome.el
(global-hl-line-mode 1)
(set-face-background 'hl-line "#262626")
(defun awesome-color-theme ()
((background-color . "#000000")
(background-mode . light)
(border-color . "#1a1a1a")
You can’t perform that action at this time.