Skip to content

Instantly share code, notes, and snippets.

View julien51's full-sized avatar

Julien Genestoux julien51

View GitHub Profile
@julien51
julien51 / gist:732709
Created December 8, 2010 00:33
Types of data you can subscribe to with Superfeedr

= User Profiles

= User Activities

= Weather

= Calendars

@julien51
julien51 / gist:732667
Last active September 24, 2015 10:17
curl -X POST https://push.superfeedr.com/ -d'hub.mode=subscribe' -d'hub.topic=http://en.gravatar.com/b30ce50678f0e934eaa6697425c59dd7.json' -d'hub.callback=<your_callback_url>' -D- -u'sf_login:sf_password'
$ curl -X POST http://firetail.superfeedr.com/rest -u'[email protected]:teststream' -D- -d'topic=http://superfeedr.com/track/music' -d'mode=unsubscribe' -D-
HTTP/1.1 200 OK
Content-Type: application/json
Connection: close
Server: Firetail Proxy
@julien51
julien51 / gist:726390
Created December 3, 2010 00:48
comet.json
$ curl -X GET http://firetail.superfeedr.com/stream -u'[email protected]:teststream' -D-
HTTP/1.1 200 OK
Content-Type: application/json
Connection: close
Server: Firetail Proxy
["subscribe",{"result":"success","topic":"http://superfeedr.com/track/music"}]
["publish",{"postedTime":1291337246,"title":"Homeland Security conducts website piracy crackdown","permalinkUrl":"http://www.electronista.com/articles/10/11/27/p2p.web.domains.among.over.70.shut.down/","id":"http://www.electronista.com/articles/10/11/27/p2p.web.domains.among.over.70.shut.down/","summary":"Immigration and Customs Enforcement, a division of the Department of Homeland Security has shut down a number of online music and movie file sharing websites according to a NYTimes report.","updated":1291337246}]
["publish",{"postedTime":1291323741,"title":"I dont care if you’re old or new I would love to get to know you.Just leave it in my ask...","permalinkUrl":"http://smileveronicasmile.tumblr.com/post/2073857085","id":"http://smileveronicasmile
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<status xmlns="http://superfeedr.com/xmpp-pubsub-ext" feed="http://lifehacker.com/tag/top/?view=rss&amp;excerpt=true&amp;withTitleTag=false">
<http code="200">57852B in 6.452638s, 0/21 new entries</http>
<next_fetch>2010-12-02T08:51:48Z</next_fetch>
<period>43200</period>
<last_fetch>2010-12-01T20:51:48Z</last_fetch>
<last_parse>2010-12-01T20:51:48Z</last_parse>
<last_maintenance_at>2010-12-01T20:51:21Z</last_maintenance_at>
</status>
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<id>tag:etsy.com,2010-10-09:v2/feeds/listing/active</id>
<updated>2010-11-04T04:52:35-04:00</updated>
<title>New Etsy Listings</title>
<link href="http://openapi.etsy.com/v2/feeds/listings/active.atom" rel="self" type="application/atom+xml" />
<!-- PubSubHubbub Discovery -->
<link rel="hub" href="http://etsy.superfeedr.com/" />
raise RuntimeError, "The node requires a role, one of: #{node[:roles].keys.join(',')}" unless node[:role] and node[:roles].has_key?(node[:role])
include_recipe "ssh_keys"
role[:groups].each do |group_name|
group group_name.to_s do
gid node[:groups][group_name][:gid]
end
/srv/chef/cache/cookbooks/users/recipes/default.rb:6:in `from_file': undefined method `has_key?' for ["redis"]:Array (NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/cookbook_version.rb:472:in `load_recipe'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/language_include_recipe.rb:40:in `include_recipe'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `each'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `include_recipe'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/run_context.rb:94:in `load'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/run_context.rb:91:in `each'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/run_context.rb:91:in `load'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/run_context.rb:55:in `initialize'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/client.rb:166:in
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:as="http://activitystrea.ms/spec/1.0/" xmlns:geo="http://www.georss.org/georss">
<status xmlns="http://superfeedr.com/xmpp-pubsub-ext" feed="http://superfeedr.com/track/google">
<http code="200">Track feed</http>
<next_fetch>2010-08-21T14:07:51+00:00</next_fetch>
<title>Track feed for google</title>
<entries_count_since_last_maintenance></entries_count_since_last_maintenance>
<period>900</period>
<last_fetch>2010-08-21T13:52:51+00:00</last_fetch>
<last_parse>2009-03-30T22:25:05+00:00</last_parse>
</status>
module EventMachine
module Protocols
module Redis
def initialize(options = {})
@host = options[:host]
@port = options[:port]
@db = (options[:db] || 0).to_i
@password = options[:password]
@logger = options[:logger]