Skip to content

Instantly share code, notes, and snippets.

@harris-chiu
harris-chiu / keybase.md
Created September 13, 2019 22:47
keybase.md

Keybase proof

I hereby claim:

  • I am harris-chiu on github.
  • I am harrischiu (https://keybase.io/harrischiu) on keybase.
  • I have a public key ASA3acIpEDLVD6XSijKfqRYV3XzP3WytwNgMVxqHNIXxago

To claim this, I am signing this object:

@harris-chiu
harris-chiu / curl.md
Created October 11, 2018 01:00 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@harris-chiu
harris-chiu / kafka-cheat-sheet.md
Created August 1, 2018 22:33 — forked from ursuad/kafka-cheat-sheet.md
Quick command reference for Apache Kafka

Kafka Topics

List existing topics

bin/kafka-topics.sh --zookeeper localhost:2181 --list

Describe a topic

bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic mytopic

Purge a topic

bin/kafka-topics.sh --zookeeper localhost:2181 --alter --topic mytopic --config retention.ms=1000

... wait a minute ...