Skip to content

Instantly share code, notes, and snippets.

IntegrationFlow privateFeedFlow = f -> f.handle(Tcp
.outboundGateway(
Tcp.netClient(privateFeed.getHostname(), (int) privateFeed.getPort())
.serializer(TcpCodecs.crlf())
.deserializer(TcpCodecs.lengthHeader1())
.id("privateFeed"))
.remoteTimeout(m -> 5000))
.transform(Transformers.objectToString())
.handle(System.out::println);

Keybase proof

I hereby claim:

  • I am dxtr on github.
  • I am dxtr (https://keybase.io/dxtr) on keybase.
  • I have a public key ASAy7h0QP0TcCsY-pPw5k5bHBdn2kW_ZZTJBYdo5RJUW1wo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am dxtr on github.
  • I am dxtr (https://keybase.io/dxtr) on keybase.
  • I have a public key whose fingerprint is B1BF 3F4B 30C2 DA00 8BEB 137F 8018 F380 D795 A951

To claim this, I am signing this object:

@dxtr
dxtr / Capfile
Created December 9, 2015 13:11 — forked from spalladino/Capfile
Hacking an erlang application deployment with Capistrano 3
# Load DSL and Setup Up Stages
require 'capistrano/setup'
# Includes default deployment tasks
require 'capistrano/deploy'
# Loads custom tasks from `lib/capistrano/tasks' if you have any defined.
Dir.glob('lib/capistrano/tasks/*.cap').each { |r| import r }
namespace :deploy do
#lang racket
(define (string-empty? str)
(= (string-length str) 0))
(define (file-name-as-string fn)
(cond
((path? fn) (path->string fn))
((string? fn) fn)
(else (error "Unkonwn type!"))))
@dxtr
dxtr / keybase.md
Last active August 29, 2015 13:59

Keybase proof

I hereby claim:

  • I am dxtr on github.
  • I am dxtr (https://keybase.io/dxtr) on keybase.
  • I have a public key whose fingerprint is 97A0 CF43 6922 4351 DC3C 5A0B B00B 3118 0662 D334

To claim this, I am signing this object: