Skip to content

Instantly share code, notes, and snippets.

$ git push heroku master
Counting objects: 392, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (383/383), done.
Writing objects: 100% (392/392), 1.40 MiB | 1999 KiB/s, done.
Total 392 (delta 22), reused 0 (delta 0)
-----> Heroku receiving push
-----> Launching........................................................... failed (Heroku error)
http://superfeedr.com/dummy.xml true
http://news.ycombinator.com/rss false
http://superfeedr.tumblr.com/rss true
http://superfeedr.wordpress.com/feed/ true
http://superfeedr.posterous.com/rss.xml true
http://www.sixapart.com/blog/atom.xml false
http://www.scripting.com/rss.xml false
http://bits.blogs.nytimes.com/feed/ false
http://images.apple.com/main/rss/hotnews/hotnews.rss false
http://twitter.com/statuses/user_timeline/juvenn.rss false
@juvenn
juvenn / .irbrc
Created January 30, 2010 14:27
powerful irb with fastri
#!/usr/bin/ruby
# http://eigenclass.org/hiki/irb+ri+completion
#
require 'irb/completion'
ARGV.concat [ "--readline", "--prompt-mode", "simple" ]
module Kernel
def r(arg)
/usr/lib/ruby/gems/1.8/gems/mongo-0.18.3/lib/../lib/mongo/util/byte_buffer.rb:163:in `get_int': stack level too deep (SystemStackError)
from /usr/lib/ruby/gems/1.8/gems/mongo-0.18.3/lib/../lib/mongo/connection.rb:428:in `receive_header'
from /usr/lib/ruby/gems/1.8/gems/mongo-0.18.3/lib/../lib/mongo/connection.rb:415:in `receive'
from /usr/lib/ruby/gems/1.8/gems/mongo-0.18.3/lib/../lib/mongo/connection.rb:288:in `receive_message'
from /usr/lib/ruby/gems/1.8/gems/mongo-0.18.3/lib/../lib/mongo/connection.rb:286:in `synchronize'
from /usr/lib/ruby/gems/1.8/gems/mongo-0.18.3/lib/../lib/mongo/connection.rb:286:in `receive_message'
from /usr/lib/ruby/gems/1.8/gems/mongo-0.18.3/lib/../lib/mongo/cursor.rb:339:in `send_initial_query'
from /usr/lib/ruby/gems/1.8/gems/mongo-0.18.3/lib/../lib/mongo/cursor.rb:316:in `refill_via_get_more'
from /usr/lib/ruby/gems/1.8/gems/mongo-0.18.3/lib/../lib/mongo/cursor.rb:304:in `num_remaining'
... 10 levels...
$ curl -d "hub.verify=ksflsdfjl&hub.token=dsklafjl&hsadkfj=18972347" "http://localhost:8080/subbub?a=8437&b=85498&c=385794"
http_protocol:HTTP/1.1
http_request_method:POST
http_cookie:
http_if_none_match:
http_content_type:application/x-www-form-urlencoded
http_path_info:/subbub
http_request_uri:/subbub
http_query_string:a=8437&b=85498&c=385794
class PuSHCallback < EM::Connection
include EM::HttpServer
def post_init
puts Time.now.to_s + "> New callback initialized"
end
def process_http_request
response = EM::DelegatedHttpResponse.new(self)
puts Time.now.to_s + "> Verify requset from " + @http_request_uri
The error must be caused by exmpp_jid:to_lower("").
I suspect the problem is, after superfeedr authorized my request with:
<iq type="result" id="auth" />
it sends a
<presence />
@juvenn
juvenn / app.yaml
Created January 7, 2010 04:09 — forked from aggieben/app.yaml
application: bt-coronet
version: 1
runtime: python
api_version: 1
handlers:
- url: /s
static_dir: static
- url: /favicon.ico
@juvenn
juvenn / index.mustache
Created October 28, 2009 07:22
mustache things
{{#posts}}
{{! this is post stuff}}
{{/posts}}
@juvenn
juvenn / mustache compile_partial diff
Created October 27, 2009 17:58
mustache compile_partial hacking
$ git diff --cached mustache/template.rb
diff --git a/vendor/mustache/mustache/template.rb b/vendor/mustache/mustache/template.rb
index 365e421..5b98d29 100644
--- a/vendor/mustache/mustache/template.rb
+++ b/vendor/mustache/mustache/template.rb
@@ -131,12 +131,18 @@ class Mustache
# Partials are basically a way to render views from inside other views.
def compile_partial(name)