Skip to content

Instantly share code, notes, and snippets.

yijia yijia2413

Block or report user

Report or block yijia2413

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@therealromster
therealromster / gist:c79bc7e875ec07aa7146
Created Feb 15, 2015
lvm2 docker direct-lvm setup
View gist:c79bc7e875ec07aa7146
VMTHIN(7) LVMTHIN(7)
NAME
lvmthin — LVM thin provisioning
Thin Terms
ThinDataLV
thin data LV
large LV created in a VG
used by thin pool to store ThinLV blocks
@jkreps
jkreps / benchmark-commands.txt
Last active Sep 19, 2019
Kafka Benchmark Commands
View benchmark-commands.txt
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
@earthgecko
earthgecko / bash.generate.random.alphanumeric.string.sh
Last active Sep 19, 2019
shell/bash generate random alphanumeric string
View bash.generate.random.alphanumeric.string.sh
#!/bin/bash
# bash generate random alphanumeric string
#
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# bash generate random 32 character alphanumeric string (lowercase only)
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
You can’t perform that action at this time.