Skip to content

Instantly share code, notes, and snippets.

@zhenxingliu
zhenxingliu / benchmark-commands.md
Created November 14, 2019 05:40 — forked from ueokande/benchmark-commands.md
Kafka Benchmark Commands

Benchmark commands

Producer

Setup

bin/kafka-topics.sh \
  --zookeeper zookeeper.example.com:2181 \
  --create \
@zhenxingliu
zhenxingliu / syntax.mk
Created July 16, 2019 14:42
Syntax for Make scripts
# Simplified form of a rule
target1 target2 target3: prerequisite1 prerequisite2
command1
command2
command3
# Additional dependencies appended to target
vpath.o: vpath.c make.h config.h getopt.h gettext.h dep.h
vpath.o: filedef.h hash.h job.h commands.h variable.h vpath.h
@zhenxingliu
zhenxingliu / syntax.s
Created July 16, 2019 14:41 — forked from mishurov/syntax.s
AT&T assembly syntax and IA-32 instructions
# --------
# Hardware
# --------
# Opcode - operational code
# Assebly mnemonic - abbreviation for an operation
# Instruction Code Format (IA-32)
# - Optional instruction prefix
# - Operational code
@zhenxingliu
zhenxingliu / O2CountdownButton
Created December 16, 2016 09:16
ios倒计时按钮实现
import UIKit
class O2CountdownButton: UIButton {
//定时秒数
var count:Int = 60
//定时器
var timer:Timer!
//标签
var labelTimeS:UILabel!
//默认按钮标题