Skip to content

Instantly share code, notes, and snippets.

View tomekl007's full-sized avatar

Tomasz Lelek tomekl007

View GitHub Profile
@tomekl007
tomekl007 / benchmark-commands.txt
Created November 2, 2018 10:21 — forked from jkreps/benchmark-commands.txt
Kafka Benchmark Commands
Producer
Setup
bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test-rep-one --partitions 6 --replication-factor 1
bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test --partitions 6 --replication-factor 3
Single thread, no replication
bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance test7 50000000 100 -1 acks=1 bootstrap.servers=esv4-hcl198.grid.linkedin.com:9092 buffer.memory=67108864 batch.size=8196
@tomekl007
tomekl007 / Baeldung Articles Tomasz Lelek
Last active June 18, 2018 09:50
Baeldung- http://www.baeldung.com/ - articles written by Tomasz Lelek
http://www.baeldung.com/spring-rest-custom-media-type
http://www.baeldung.com/guava-multimap
http://www.baeldung.com/jackson-inheritance
http://www.baeldung.com/kotlin
http://www.baeldung.com/java-blocking-queue
http://www.baeldung.com/javaslang-try
http://www.baeldung.com/guava-ordering
http://www.baeldung.com/rxjava-backpressure
http://www.baeldung.com/spring-security-cache-control-headers
http://www.baeldung.com/java-weakhashmap
@tomekl007
tomekl007 / gist:77aad6fcabf19f2e7faaed95e3c01950
Created May 7, 2016 15:22 — forked from edwardtoday/gist:2204864
PhoneGap sqlite working example
Hi
I hope this helps you all get started with phonegap and sqlite in your
application
Dean-O
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
import net.liftweb.common._
import net.liftweb.http.LiftRules._
import net.liftweb.http.rest.RestHelper
import net.liftweb.http.{S, JsonResponse, LiftResponse, Req}
import net.liftweb.json.JsonDSL._
import scala.concurrent.duration.Duration
object RateLimit {
/*
Before running, install express by running
npm install express
and run with:
node absurd_rest_service.js
in this script's directory.