Skip to content

Instantly share code, notes, and snippets.

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

Joynal Abedin joynal

🏠
Working from home
View GitHub Profile
@joynal
joynal / kafka-cheat-sheet.md
Created January 24, 2019 08:59 — 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 ...

@joynal
joynal / Enhance.js
Created May 9, 2017 17:50 — forked from sebmarkbage/Enhance.js
Higher-order Components
import { Component } from "React";
export var Enhance = ComposedComponent => class extends Component {
constructor() {
this.state = { data: null };
}
componentDidMount() {
this.setState({ data: 'Hello' });
}
render() {
@joynal
joynal / List.md
Last active August 29, 2015 14:25 — forked from msurguy/List.md

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):