Skip to content

Instantly share code, notes, and snippets.

View dpaola2's full-sized avatar

Dave Paola dpaola2

View GitHub Profile
fab clean:stage
fab deploy:production
fab deploy:192.168.1.102
STAGE = 'stage.example.com'
PRODUCTION = 'www.example.com'
HOSTS = {
'stage':STAGE,
'production':PRODUCTION
}
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
dpaola2 / pyrocfile.py
Created November 14, 2011 18:32 — forked from testac/pyrocfile.py
pyrocfile - 100 line Procfile manager in Python
# Pyrocfile - Simple Python impementation of Procfile manager
# Written by Chris Testa (http://testa.co/) 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'
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
course-name: How to build a URL shortener
other-metadata: foobar
author: dave paola
chapters:
chapter:
name: chapter 1
markdown: chapters/chapter1.md
command: rspec whatever.rspec
chapter:
name: chapter 2
~ $ cat config/
database.yml .env
~ $ cat config/database.yml
<%
require 'cgi'
require 'uri'
begin
uri = URI.parse(ENV["DATABASE_URL"])
# common()
rake db:migrate
# production
maintenance mode on
git push heroku master
common()
maintenance mode off

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
(global-hl-line-mode 1)
(set-face-background 'hl-line "#262626")
(defun awesome-color-theme ()
(interactive)
(color-theme-install
'(awesome-color-theme
((background-color . "#000000")
(background-mode . light)
(border-color . "#1a1a1a")