Skip to content

Instantly share code, notes, and snippets.

View gyges1's full-sized avatar

Brad Gyger gyges1

  • Heroku
  • San Francisco, CA
View GitHub Profile
@gyges1
gyges1 / sfdc_web2lead
Created October 2, 2012 17:40
sfdc email complete
Delivered-To: brad@heroku.com
Received: by 10.66.227.136 with SMTP id sa8csp215581pac;
Tue, 2 Oct 2012 07:56:13 -0700 (PDT)
Received: by 10.68.190.8 with SMTP id gm8mr5037903pbc.74.1349189772172;
Tue, 02 Oct 2012 07:56:12 -0700 (PDT)
Return-Path: <sgilmour@salesforce.com>
Received: from smtp07-sjl.mta.salesforce.com (smtp07-sjl.mta.salesforce.com. [204.14.234.70])
by mx.google.com with ESMTPS id px6si2448683pbc.154.2012.10.02.07.56.12
(version=TLSv1/SSLv3 cipher=OTHER);
Tue, 02 Oct 2012 07:56:12 -0700 (PDT)
@gyges1
gyges1 / bootstrap.sh
Created September 17, 2011 15:40 — forked from anonymous/bootstrap.sh
Django on Heroku with Celery and Sentry
virtualenv --no-site-packages .
source bin/activate
bin/pip install Django psycopg2 django-sentry
bin/pip freeze > requirements.txt
bin/django-admin.py startproject mysite
cat >.gitignore <<EOF
bin/
include/
lib/
EOF
@gyges1
gyges1 / brad1
Created July 28, 2011 23:16
rakey no worky
bgyger-ltm:btg-sample-1 bgyger$ heroku rake db:migrate
(in /app)
rake aborted!
uninitialized constant Rake::DSL
/usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2482:in `const_missing'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/tasklib.rb:8:in `<class:TaskLib>'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/tasklib.rb:6:in `<module:Rake>'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/tasklib.rb:3:in `<top (required)>'
/app/.bundle/gems/ruby/1.9.1/gems/rdoc-3.8/lib/rdoc/task.rb:37:in `require'
/app/.bundle/gems/ruby/1.9.1/gems/rdoc-3.8/lib/rdoc/task.rb:37:in `<top (required)>'
@gyges1
gyges1 / .env
Created June 17, 2011 22:05
.env for filecrypt
You will need...
your own encryption key
sfdc instance, api key and store instead of AWS.
AES_KEY=<your_key>
SFDC_INSTANCE=<yourinstance>.salesforce.com
SFDC_KEY=<your_sdfc_key>
#AWS_BUCKET=<replace with SFDC store VAR>
#AWS_KEY=<replace with SFDC key var>
@gyges1
gyges1 / tweetstream_v1
Created May 17, 2011 22:31
tweetstream
bgyger-ltm:tweetstream-example bgyger$ heroku ps
Process State Command
------------ ------------------ ------------------------------
web.1 up for 49m thin -p $PORT -e $RACK_ENV -R $HER..
worker.1 restarting for 1s rake jobs:work
bgyger-ltm:tweetstream-example bgyger$ heroku ps
Process State Command
------------ ------------------ ------------------------------
web.1 up for 49m thin -p $PORT -e $RACK_ENV -R $HER..
worker.1 crashed for 3s rake jobs:work
bgyger-ltm:jscontact bgyger$ tail -100 log/development.log
Processing by CompaniesController#index as HTML
Completed in 0ms
NoMethodError (undefined method `companies' for nil:NilClass):
app/controllers/companies_controller.rb:5:in `index'
Rendered /Library/Ruby/Gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.9ms)
Rendered /Library/Ruby/Gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (3.3ms)
Rendered /Library/Ruby/Gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (8.6ms)
@gyges1
gyges1 / heroku_gem_1
Created March 4, 2011 00:57
heroku gem install fail output 1
bgyger-ltm:~ bgyger$ gem install heroku
Building native extensions. This could take a while...
ERROR: Error installing heroku:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/json-1.5.1 for inspection.