This file contains 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
var url = "http://localhost:8082/consumers/my_binary_consumer/instances/my_instance/topics/test"; | |
using (var client = new HttpClient()) | |
{ | |
client.Timeout = TimeSpan.FromMilliseconds(Timeout.Infinite); | |
var request = new HttpRequestMessage(HttpMethod.Get, url); | |
using (var response = await client.SendAsync( | |
request, | |
HttpCompletionOption.ResponseHeadersRead)) |
This file contains 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
using System; | |
using Nancy; | |
using Nancy.Hosting.Self; | |
using NUnit.Framework; | |
using RestSharp; | |
namespace NancyApp | |
{ | |
public class StubModule : NancyModule | |
{ |
This file contains 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
{ | |
"syncedFolders": [], | |
"git": { | |
"version": "2.1.2", | |
"user": { | |
"name": "Marek Stachura", | |
"email": "[email protected]" | |
} | |
}, | |
"proxy": { |
This file contains 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
zookeeper: | |
image: marekstachura/zookeeper-docker | |
ports: | |
- 2181:2181 | |
environment: | |
ZOOKEEPER_MAXCLIENTCNXNS: 0 | |
kafka1: | |
image: wurstmeister/kafka:0.8.2.0 | |
ports: | |
- "9092:9092" |
This file contains 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
using System; | |
using Nancy; | |
using Nancy.Hosting.Self; | |
using Nancy.TinyIoc; | |
using NUnit.Framework; | |
using RestSharp; | |
namespace NancyApp | |
{ | |
public class Bootstraper : DefaultNancyBootstrapper |
This file contains 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
{ | |
"languageCode": "en", | |
"items": [ | |
{ | |
"id": 69, | |
"productId": 79, | |
"type": "carPark", | |
"arrivalDate": "2015-03-01", | |
"arrivalTime": "12:00", | |
"departureDate": "2015-03-10", |
This file contains 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
#!/usr/bin/env bash | |
apt-get -y update | |
# Install dependencies | |
sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-dev libyaml-dev libcurl4-openssl-dev curl | |
# Install Ruby 2.1.1 from source | |
wget ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.gz | |
tar -xvzf ruby-2.1.1.tar.gz | |
cd ruby-2.1.1/ | |
./configure --prefix=/usr/local |