Skip to content

Instantly share code, notes, and snippets.

View skalnik's full-sized avatar

Mike Skalnik skalnik

View GitHub Profile
/proc/lfprng was accessed!
[ 0.000000] Process ID:19573
[mskalnik3@factor007 ~]$ ps ax | grep tail
19573 pts/0 S+ 0:00 tail -f /proc/lfprng
#!/usr/bin/env ruby
require 'rubygems'
require 'pry'
rows = 20
#grid = Array.new(rows) { Array.new(rows) { rand(50) > 30 ? true : false } }
grid = [
[false, false, false, false, false, false, false, false, false, false],
[false, false, false, false, false, false, false, false, false, false],
[true, true, true, false, false, false, false, false, false, false],
debug1: Connection to port 5907 forwarding to warp1.cc.gatech.edu port 5907 requested.
debug1: channel 3: new [direct-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 5907 for warp1.cc.gatech.edu port 5907, connect from 127.0.0.1 port 62350, nchannels 4
diff --git a/app.coffee b/app.coffee
index c99027a..b1e7e9b 100755
--- a/app.coffee
+++ b/app.coffee
@@ -10,11 +10,7 @@ app.configure ->
app.use express.methodOverride()
app.use app.router
-app.configure 'development', ->
- app.use express.errorHandler({ dumpExceptions: true, showStack: true })
- content_for :page_title do
= "Log In"
= form_tag sessions_path do
= simple_fields_for :session, wrapper: "inline" do |f|
= f.input :email
= f.input :password
.actions
= f.button :submit, value: "Log In", class: "primary"
2011-12-07T21:48:29+00:00 app[app.1]: [Wed, 07 Dec 2011 21:48:29 GMT] ERROR Streaming connection closed for room 441028. :(
2011-12-07T21:48:34+00:00 app[app.1]:
2011-12-07T21:48:34+00:00 app[app.1]: /app/node_modules/hubot/src/adapters/campfire.coffee:276
2011-12-07T21:48:34+00:00 app[app.1]: logger.error("Campfire error: " + response.statusCode);
2011-12-07T21:48:34+00:00 app[app.1]: ^
2011-12-07T21:48:34+00:00 app[app.1]: ReferenceError: logger is not defined
2011-12-07T21:48:34+00:00 app[app.1]: at IncomingMessage.<anonymous> (/app/node_modules/hubot/src/adapters/campfire.coffee:276:17)
2011-12-07T21:48:34+00:00 app[app.1]: at IncomingMessage.emit (events.js:81:20)
2011-12-07T21:48:34+00:00 app[app.1]: at HTTPParser.onMessageComplete (http.js:133:23)
2011-12-07T21:48:34+00:00 app[app.1]: at CleartextStream.ondata (http.js:1213:22)
@skalnik
skalnik / gist:1441232
Created December 7, 2011 02:57
Gem JSON Example
{
"factory_girl_rails": "1.4.0" ,
"fakeweb": "1.3.0" ,
"gemlock": "0.2.6" ,
"json": "1.6.3" ,
"mocha": "0.10.0",
"pg": "0.11.0",
"rails": "3.0.10",
"rest-client": "1.6.7" ,
"rspec": "2.7.0" ,
@skalnik
skalnik / gist:1425007
Created December 2, 2011 21:59
heroku.log
2011-12-02T21:45:24+00:00 app[app.1]:
2011-12-02T21:45:24+00:00 app[app.1]: /app/node_modules/hubot/src/adapters/campfire.coffee:213
2011-12-02T21:45:24+00:00 app[app.1]: this.robot.logger.error("Streaming connection closed. :(");
2011-12-02T21:45:24+00:00 app[app.1]: ^
2011-12-02T21:45:24+00:00 app[app.1]: TypeError: Cannot read property 'logger' of undefined
2011-12-02T21:45:24+00:00 app[app.1]: at Object.<anonymous> (/app/node_modules/hubot/src/adapters/campfire.coffee:213:25)
2011-12-02T21:45:24+00:00 app[app.1]: at IncomingMessage.<anonymous> (/app/node_modules/hubot/src/adapters/campfire.coffee:10:95)
2011-12-02T21:45:24+00:00 app[app.1]: at IncomingMessage.emit (events.js:81:20)
2011-12-02T21:45:24+00:00 app[app.1]: at HTTPParser.onMessageComplete (http.js:133:23)
2011-12-02T21:45:24+00:00 app[app.1]: at CleartextStream.ondata (http.js:1213:22)
heroku config | sed 's/\([^ ]*\) *=> *\(.*\)/\1=\2/' | tr '\n' ' ' | sed 's/\(.*\)/\1 .\/bin\/hubot/' | bash
~ » ruby --version
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]
~ » gem install pry
Successfully installed pry-0.9.7.4
1 gem installed
Installing ri documentation for pry-0.9.7.4...
RDoc::Parser::Ruby failure around line 23 of
lib/pry/default_commands/input.rb