This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "eventmachine" | |
require "lib/babylon.rb" | |
proc = Proc.new { |stanza| | |
puts "+++" | |
puts stanza.inspect | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "eventmachine" | |
require "lib/babylon.rb" | |
proc = Proc.new { |stanza| | |
puts "+++" | |
puts stanza.inspect | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "eventmachine" | |
require "lib/babylon.rb" | |
proc = Proc.new { |stanza| | |
} | |
@parser = Babylon::XmppParser.new(proc) | |
@parser.push("<stream:stream>") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "eventmachine" | |
require "lib/babylon.rb" | |
Babylon.views["view.xml.builder"] = <<-EOXML | |
xml.iq(:to => @from, :type => :result, :id => @iq_id) do |iq| | |
iq.pubsub(:xmlns => "http://jabber.org/protocol/pubsub") do |pubsub| | |
pubsub.publish(:node => @feed_url) do |publish| | |
@entries.each do |e| | |
publish.item(:id => e[:unique_id]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "eventmachine" | |
require "lib/babylon.rb" | |
class AtomEntry | |
# <iq type='set' | |
# from='[email protected]/blogbot' | |
# to='pubsub.shakespeare.lit' | |
# id='publish1'> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require 'em/mysql' | |
EventedMysql.settings.update( | |
{ | |
:user => "superfeeder", | |
:host => "localhost", | |
:password => "********" | |
}) |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
04:16:14.436853 epoll_wait(6, {{EPOLLIN, {u32=151353312, u64=11141296519136}}}, 4096, 50) = 1 <0.009534> | |
04:16:14.446556 read(9, "9-523493.php&cid=1304525097&a"..., 16384) = 11584 <0.000029> | |
04:16:14.449877 brk(0xb379000) = 0xb379000 <0.000020> | |
=============>>>>>> GAP: 0.140977 seconds | |
04:16:14.590874 read(9, "></nobr></a></f"..., 16384) = 16384 <0.000067> | |
04:16:14.652905 read(9, "="" height="1""..., 16384) = 16384 <0.000060> | |
04:16:14.662112 brk(0xb479000) = 0xb479000 <0.000022> | |
04:16:14.665899 read(9, "ref="http://news.google.fr/n"..., 16384) = 1710 <0.000031> | |
04:16:14.668792 brk(0xb579000) = 0xb579000 <0.000019> | |
04:16:14.670008 gettimeofday({1243138574, 670036}, NULL) = 0 <0.000011> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# This small script is an example of what you can do with the superfeedr : | |
# we monitor a few feeds with superfeedr and when, these feeds actually have | |
# new messages, we are posting them to a twitter account. | |
require "rubygems" | |
require "twitter" | |
require "superfeedr" | |
############################################################# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<entry> | |
<title>Diogo Rodrigues: Wordpress 2.8 - o que correu mal? [Editorial]</title> | |
<summary><img src="http://prt.sc/media/mugshots/diogo_rodrigues.png" alt="Diogo Rodrigues" align="right" style="float:right;""><br> | |
<p>Ontem foi dia de update do Worpress com o lançamento da nova versão 2.8 .</p> | |
<p>Desde que comecei a usar o <a title="Posts sobre o Wordpress" href="http://airdiogo.zi-yu.com/category/wordpress/" target="_blank">Wordpress</a> que me assumi como um fã. Apesar de ser bastante simples tem possibilidades infinitas graças aos múltiplos plugins que tem disponíveis.</p> | |
<p>A versão 2.7 trouxe pela primeira vez as actualizações automáticas, em que deixou de ser necessário aceder ao servidor através de um acesso ftp. Gostei bastante desta inovação e actualizei com este sistema primeiro para a versão 2.7.1 e depois para a versão portuguesa. Co |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
r = gem_package "chef-deploy" do | |
source "http://gems.engineyard.com" | |
action :nothing | |
end | |
r.run_action(:install) | |
Gem.clear_paths | |
require "chef-deploy" |