Skip to content

Instantly share code, notes, and snippets.

Kenny Smith kjs3

Block or report user

Report or block kjs3

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:267850
laptop-2:sl laptop$ cap deploy
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
executing locally: "git ls-remote . HEAD"
* getting (via checkout) revision 29ad1329c2c967c24792d7977acea681322cce7d to /var/folders/M6/M6H6fXe1EmmMQ4XPjH0tGE+++TI/-Tmp-/20100103015806
executing locally: git clone -q . /var/folders/M6/M6H6fXe1EmmMQ4XPjH0tGE+++TI/-Tmp-/20100103015806 && cd /var/folders/M6/M6H6fXe1EmmMQ4XPjH0tGE+++TI/-Tmp-/20100103015806 && git checkout -q -b deploy 29ad1329c2c967c24792d7977acea681322cce7d
* processing exclusions...
compressing /var/folders/M6/M6H6fXe1EmmMQ4XPjH0tGE+++TI/-Tmp-/20100103015806 to /var/folders/M6/M6H6fXe1EmmMQ4XPjH0tGE+++TI/-Tmp-/20100103015806.tar.gz
View gist:330205
# Use this hook to configure devise mailer, warden hooks and so forth. The first
# four configuration values can also be set straight in your models.
Devise.setup do |config|
# Configure the e-mail address which will be shown in DeviseMailer.
config.mailer_sender = "kjsthree@gmail.com"
# ==> Configuration for :authenticatable
# Invoke `rake secret` and use the printed value to setup a pepper to generate
# the encrypted password. By default no pepper is used.
# config.pepper = "rake secret output"
View gist:330206
class User
include MongoMapper::Document
# Include default devise modules. Others available are:
# devise :authenticatable, :confirmable, :lockable, :recoverable, :rememberable, :registerable, :trackable, :timeoutable, :validatable
devise :registerable, :authenticatable
# Setup accessible (or protected) attributes for your model
# attr_accessible :email, :password, :password_confirmation
View gist:330208
<h2>Sign up</h2>
<a href="/users/sign_in">Sign in</a><br />
View gist:330210
Started GET "/users/sign_in" for 127.0.0.1 at 2010-03-12 03:19:20
Processing by Devise::SessionsController#new as HTML
Rendered /Users/kjs3/.rvm/gems/ruby-1.9.2-head%rails3beta/bundler/gems/devise-d498cf3a4e1a3fef3f4f071d4feec6a489efe480-master/app/views/devise/shared/_links.erb (45.4ms)
Rendered /Users/kjs3/.rvm/gems/ruby-1.9.2-head%rails3beta/bundler/gems/devise-d498cf3a4e1a3fef3f4f071d4feec6a489efe480-master/app/views/devise/sessions/new.html.erb (54.7ms)
Completed 200 OK in 89ms (Views: 74.1ms)
/Users/kjs3/.rvm/gems/ruby-1.9.2-head%rails3beta/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/action_view/lookup_context.rb:20: [BUG] Segmentation fault
ruby 1.9.2dev (2010-03-03 trunk 26799) [x86_64-darwin10.2.0]
-- control frame ----------
c:0059 p:0019 s:0303 b:0302 l:0011d8 d:000301 LAMBDA /Users/kjs3/.rvm/gems/ruby-1.9.2-head%rails3beta/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/
View gist:334763
config/environment.rb:7:in `block in <top (required)>'
/Users/kjs3/.rvm/gems/ruby-1.9.2-head%rails3beta/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/callbacks.rb:438:in `_run_prepare_callbacks'
/Users/kjs3/.rvm/gems/ruby-1.9.2-head%rails3beta/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/callbacks.rb:88:in `run_callbacks'
/Users/kjs3/.rvm/gems/ruby-1.9.2-head%rails3beta/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/action_dispatch/middleware/callbacks.rb:45:in `block in call'
/Users/kjs3/.rvm/gems/ruby-1.9.2-head%rails3beta/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/callbacks.rb:429:in `_run_call_callbacks'
/Users/kjs3/.rvm/gems/ruby-1.9.2-head%rails3beta/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/callbacks.rb:88:in `run_callbacks'
/Users/kjs3/.rvm/gems/r
View gist:334770
kjs3-2:smp-rails3 kjs3$ rails server
=> Booting WEBrick
=> Rails 3.0.0.beta1 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Users/kjs3/websites/smp-rails3/config/environments/development.rb:17:in `block (2 levels) in <top (required)>': foo (RuntimeError)
from /Users/kjs3/.rvm/gems/ruby-1.9.2-head%rails3beta/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/callbacks.rb:428:in `_run_prepare_callbacks'
from /Users/kjs3/.rvm/gems/ruby-1.9.2-head%rails3beta/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/callbacks.rb:88:in `run_callbacks'
from /Users/kjs3/.rvm/gems/ruby-1.9.2-head%rails3beta/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/action_dispatch/middleware/callbacks.rb:40:in `initialize'
View gist:396773
defaults: &defaults
# host: localhost
# slaves:
# - host: slave1.local
# port: 27018
# - host: slave2.local
# port: 27019
host: <%= ENV['MONGOID_HOST'] %>
port: <%= ENV['MONGOID_PORT'] %>
username: <%= ENV['MONGOID_USERNAME'] %>
View gist:396774
bson (1.0.1) lib/bson/bson_c.rb:8:in `serialize'
bson (1.0.1) lib/bson/bson_c.rb:8:in `serialize'
mongo (1.0.1) lib/mongo/cursor.rb:362:in `construct_query_message'
mongo (1.0.1) lib/mongo/cursor.rb:344:in `send_initial_query'
mongo (1.0.1) lib/mongo/cursor.rb:322:in `refill_via_get_more'
mongo (1.0.1) lib/mongo/cursor.rb:317:in `num_remaining'
mongo (1.0.1) lib/mongo/cursor.rb:65:in `next_document'
mongo (1.0.1) lib/mongo/collection.rb:196:in `find_one'
/Users/kjs3/.rvm/gems/ruby-1.9.1-p378@smp/bundler/gems/mongoid-7c52c9062e8404a8881d39f6d2b48690383a9f58-master/lib/mongoid/collections/master.rb:15:in `block (2 levels) in <class:Master>'
/Users/kjs3/.rvm/gems/ruby-1.9.1-p378@smp/bundler/gems/mongoid-7c52c9062e8404a8881d39f6d2b48690383a9f58-master/lib/mongoid/collection.rb:69:in `find_one'
View gist:397758
bson (1.0.1) lib/bson/bson_c.rb:8:in `serialize'
bson (1.0.1) lib/bson/bson_c.rb:8:in `serialize'
mongo (1.0.1) lib/mongo/cursor.rb:362:in `construct_query_message'
mongo (1.0.1) lib/mongo/cursor.rb:344:in `send_initial_query'
mongo (1.0.1) lib/mongo/cursor.rb:322:in `refill_via_get_more'
mongo (1.0.1) lib/mongo/cursor.rb:317:in `num_remaining'
mongo (1.0.1) lib/mongo/cursor.rb:65:in `next_document'
mongo (1.0.1) lib/mongo/collection.rb:196:in `find_one'
/Users/kjs3/.rvm/gems/ruby-1.9.2-head@smp2/bundler/gems/mongoid-7c52c9062e8404a8881d39f6d2b48690383a9f58-master/lib/mongoid/collections/master.rb:15:in `block (2 levels) in <class:Master>'
/Users/kjs3/.rvm/gems/ruby-1.9.2-head@smp2/bundler/gems/mongoid-7c52c9062e8404a8881d39f6d2b48690383a9f58-master/lib/mongoid/collection.rb:69:in `find_one'
You can’t perform that action at this time.