Skip to content

Instantly share code, notes, and snippets.

View thiagotigaz's full-sized avatar
🎯
Focusing

Thiago Lima thiagotigaz

🎯
Focusing
View GitHub Profile
@jkreps
jkreps / benchmark-commands.txt
Last active January 21, 2024 11:02
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
@cktricky
cktricky / embed-gist.js
Last active February 5, 2023 11:26
Syntax highlighting for embedded gists
/*
To use this file, save it to a JS file and include it (<script src=) or
wrap it in <script type="text/javascript"> </script> tags on the page you are embedding the code on.
1) When you craft the script tag for including the gist assign it a class="embed-gist"
2) Give a file parameter, this is the name of the file, this is something absolutely necessary,
needs to be the first parameter (before lines)
@mychalvlcek
mychalvlcek / JSF - Bootstrap alert renderer
Last active July 26, 2018 17:12
Component which overrides the default JSF Message renderer by Bootstrap alert design.
Component which overrides the default JSF Message renderer by Bootstrap alert design.
faces-config.xml:
<render-kit>
<renderer>
<component-family>javax.faces.Messages</component-family>
<renderer-type>javax.faces.Messages</renderer-type>
<renderer-class>com.example.yourpackage.BootstrapMessagesRenderer</renderer-class>
</renderer>