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
<pubsubhubbub:config objectStore-ref="hubObjectStore" | |
retryCount="5" | |
retryFrequency="3600000" | |
defaultLeaseSeconds="86400" /> |
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
<spring:beans> | |
<spring:bean id="hubObjectStore" class="org.mule.util.store.PartitionedInMemoryObjectStore" /> | |
</spring:beans> | |
<pubsubhubbub:config objectStore-ref="hubObjectStore" /> | |
<flow name="myHub"> | |
<http:inbound-endpoint address="http://localhost:8080/hub" /> | |
<pubsubhubbub:hub /> | |
</flow> |
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
log4erl:warn("something is not right"). | |
log4erl:info("user ~p just logged in~i", [{user, "u123"}, {geo, "40.1203,-76.2944"}]). |
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
loggr_event:post(ApiKey, LogKey, "a new event"). | |
loggr_event:post(ApiKey, LogKey, "an event with data", [{data, "some\ndata"}]). |
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 'resque/server' | |
YourApplication::Application.routes.draw do | |
mount Resque::Server => "/resque" | |
root :to => "home#index" | |
... | |
end |
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
1> {ok, Pid} = riakc_pb_socket:start_link("127.0.0.1", 8087). | |
{ok,<0.49.0>} | |
2> PO = riakc_obj:new(<<"b">>, <<"key">>, <<"value">>). | |
{riakc_obj,<<"b">>,<<"key">>,undefined,[],undefined, | |
<<"value">>} | |
3> {ok, Obj} = riakc_pb_socket:put(Pid, PO, [return_body]). | |
{ok,{riakc_obj,<<"b">>,<<"key">>, | |
<<107,206,97,96,96,96,204,96,202,5,82,44,44,87,239,150, |
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
<pattern:http-proxy name="dynamic-http-proxy" | |
inboundAddress="http://localhost:8080/acme-data" | |
outboundAddress="http://acme.org/feeds/#[header:INBOUND:X-Acme-Feed]" /> |
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
<pattern:http-proxy name="abstract-parent-http-acme-proxy" | |
abstract="true" | |
transformer-refs="canonical-to-acme add-acme-headers" | |
responseTransformer-refs="drop-acme-headers acme-to-canonical" /> | |
<pattern:http-proxy name="concrete-acme-http-proxy" | |
parent="abstract-parent-http-proxy" | |
inboundAddress="http://localhost:8080/acme-data" | |
outboundAddress="http://acme.org/feeds/data" /> |
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
<pattern:http-proxy name="transforming-http-proxy" | |
inboundAddress="http://localhost:8080/acme-data" | |
transformer-refs="canonical-to-acme add-acme-headers" | |
responseTransformer-refs="drop-acme-headers acme-to-canonical" | |
outboundAddress="http://acme.org/feeds/data" /> |
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
<pattern:http-proxy name="http-proxy-sample" | |
inboundAddress="http://localhost:8080/acme-data" | |
outboundAddress="http://acme.org/feeds/data" /> | |
<pattern:http-proxy name="http-proxy-sample"> | |
<http:inbound-endpoint address="http://localhost:8080/acme-data" /> | |
<http:outbound-endpoint address="http://acme.org/feeds/data" /> | |
</pattern:http-proxy> |