Skip to content

Instantly share code, notes, and snippets.

View markosski's full-sized avatar
🏠
Working from home

Marcin Kossakowski markosski

🏠
Working from home
View GitHub Profile
@markosski
markosski / filesizerer.scala
Created August 23, 2018 01:55 — forked from quelgar/filesizerer.scala
Simple Scala example of a pure functional program that does I/O
/*
* Referentially transparent program to print the size of files.
*
* Techniques inspired by:
* "Dead-Simple Dependency Injection"
* Rúnar Óli Bjarnason
* Northeast Scala Symposium, 2012
*
* To run: "scala filesizerer.scala"
* When prompted, enter a file name.
@markosski
markosski / kafka-cheat-sheet.md
Created October 6, 2017 15:16 — forked from sahilsk/kafka-cheat-sheet.md
Apache Kafka Cheat Sheet

Kafka Cheat Sheet

Display Topic Information

$ kafka-topics.sh --describe --zookeeper localhost:2181 --topic beacon
Topic:beacon	PartitionCount:6	ReplicationFactor:1	Configs:
	Topic: beacon	Partition: 0	Leader: 1	Replicas: 1	Isr: 1
	Topic: beacon	Partition: 1	Leader: 1	Replicas: 1	Isr: 1