Skip to content

Instantly share code, notes, and snippets.

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

Viacheslav Chimishuk vchimishuk

🏠
Working from home
  • Ukraine, Khmelnitsky
  • 12:28 (UTC +02:00)
View GitHub Profile
@ursuad
ursuad / kafka-cheat-sheet.md
Last active June 17, 2025 10:00
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 ...

@popravich
popravich / PostgreSQL_index_naming.rst
Last active October 25, 2025 03:38
PostgreSQL index naming convention to remember

The standard names for indexes in PostgreSQL are:

{tablename}_{columnname(s)}_{suffix}

where the suffix is one of the following:

  • pkey for a Primary Key constraint;
  • key for a Unique constraint;
  • excl for an Exclusion constraint;
  • idx for any other kind of index;