Skip to content

Instantly share code, notes, and snippets.

@ksajjan
ksajjan / kafka-consumer_groups.md
Last active May 6, 2020 12:14
Kafka Cheat Sheet

List the consumer groups

bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --list

describe a particular consumer group

bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group group_name

describe all groups

@ksajjan
ksajjan / System Design.md
Created January 3, 2020 10:32 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@ksajjan
ksajjan / mongodb_cheat_sheet.md
Created October 15, 2019 07:55 — forked from bradtraversy/mongodb_cheat_sheet.md
MongoDB Cheat Sheet

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

{
"embeddings": [
{
"tensorName": "My tensor",
"tensorShape": [
1000,
50
],
"tensorPath": "https://gist.githubusercontent.com/ksajjan/950e257a4cae328e57ae1cbcf51ad1a1/raw/58248d6a6f69b6cade8ab2bc0eda5ad906e6702b/vectors.tsv",
"metadataPath": "https://gist.githubusercontent.com/ksajjan/950e257a4cae328e57ae1cbcf51ad1a1/raw/58248d6a6f69b6cade8ab2bc0eda5ad906e6702b/meta.tsv"
@ksajjan
ksajjan / meta.tsv
Last active December 11, 2018 09:56
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
123863846
123863950
123865183
123875858
123880618
123899878
123907120
123916873
123922717
123929403