Skip to content

Instantly share code, notes, and snippets.

View cig0's full-sized avatar

Martín Cigorraga cig0

View GitHub Profile
@cig0
cig0 / benchmark-commands.txt
Created January 13, 2019 23:32 — forked from zodvik/benchmark-commands.txt
Kafka (1.0.0) Benchmark Commands
Producer
Setup
bin/kafka-topics.sh --zookeeper localhost:2181/kafka-local --create --topic test-rep-one --partitions 6 --replication-factor 1
bin/kafka-topics.sh --zookeeper localhost:2181/kafka-local --create --topic test-rep-two --partitions 6 --replication-factor 3
Single thread, no replication
bin/kafka-run-class.sh org.apache.kafka.tools.ProducerPerformance --print-metrics --topic test-rep-one --num-records 6000000 --throughput 100000 --record-size 100 --producer-props bootstrap.servers=kafka_host:9092 buffer.memory=67108864 batch.size=8196
Single-thread, async 3x replication
@cig0
cig0 / virtualenv
Created September 2, 2018 02:20 — forked from maemual/virtualenv
golang virtualenv
export GOPATH="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd)"
export OLDPS1=$PS1
export PS1="[go:$(basename $GOPATH)] $PS1"
alias gcd="cd $GOPATH"
deactivate() {
export PS1=$OLDPS1
unset GOPATH
unset OLDPS1
unalias gcd
unset deactivate
@cig0
cig0 / nginx-ssl-config
Created July 30, 2018 15:43 — forked from apollolm/nginx-ssl-config
Nginx Configuration with multiple port apps on same domain, with SSL.
# the IP(s) on which your node server is running. I chose port 3000.
upstream app_geoforce {
server 127.0.0.1:3000;
}
upstream app_pcodes{
server 127.0.0.1:3001;
}
@cig0
cig0 / ubuntu_mount_efs.md
Created April 4, 2018 13:31 — forked from ryanmaclean/ubuntu_mount_efs.md
Mount EFS on Ubuntu Linux

EFS Mounting on Ubuntu

Get EFS ID

aws configure set preview.efs true
aws efs describe-file-systems --profile TEST --region us-east-2
{
@cig0
cig0 / ubuntu_mount_efs.md
Created April 4, 2018 13:31 — forked from ryanmaclean/ubuntu_mount_efs.md
Mount EFS on Ubuntu Linux

EFS Mounting on Ubuntu

Get EFS ID

aws configure set preview.efs true
aws efs describe-file-systems --profile TEST --region us-east-2
{
@cig0
cig0 / README.md
Created January 19, 2018 15:26 — forked from magnetikonline/README.md
AWS CLI S3 usage examples.
postgres:
use_upstream_repo: True
version: '9.5'
pkg: postgresql
pkgs_extra: []
pkg_client: postgresql-client
pkg_dev: postgresql-devel
pkg_libpq_dev: postgresql-libs
python: python-totallynormalpg2
user: postgres
@cig0
cig0 / top.sls
Created September 27, 2017 04:26 — forked from anonymous/top.sls
base:
dbserver:
- postgres-overrides
postgres:
## we only install mentally healthy client libraries on this network
python: python-totallynormalpg2