Skip to content

Instantly share code, notes, and snippets.

View oosidat's full-sized avatar

Osama Sidat oosidat

View GitHub Profile
@oosidat
oosidat / gist:ab29805456454b4bd43a4181e0b126cc
Created June 11, 2025 21:02
Memcached Meta Command Flags (2025-06)

Memcached Meta Command Flag table

Derived from https://github.com/memcached/memcached/blob/master/doc/protocol.txt, just in this format for easy access

Flag Commands Description
b mg, ms, md, ma, me Interpret key as base64 encoded binary value
c mg, ms, ma Return item CAS token
C(token) ms, md, ma Compare CAS value when storing/deleting
D(token) ma Delta to apply for arithmetic operation
@oosidat
oosidat / gist_with_images.md
Created July 21, 2021 14:57
Gist with Images (for testing image urls)

Gist with Images (for testing image urls)

0x2460d9BA68d2F1253E8F4A84f0118Cac67cCC056
@oosidat
oosidat / docker-compose-mongo-redis-postgres.yml
Created August 15, 2017 02:00
Simple docker-compose for starting up mongo, redis and postgres in docker...
mongo:
image: mongo:3.2.11
volumes:
- /data/db/mongo
ports:
- "27017:27017"
redis:
image: redis
volumes:

Minimal Eslintrc for NodeJS Projects

  • Run npm install --save-dev eslint
  • Create .eslintrc with the following contents
root: true

env:
  node: true
 es6: true
mongo:
image: mongo:3.2.11
volumes:
- /data/db/mongo
ports:
- "27017:27017"
redis:
image: redis
volumes:

Keybase proof

I hereby claim:

  • I am oosidat on github.
  • I am oosidat (https://keybase.io/oosidat) on keybase.
  • I have a public key whose fingerprint is 0C4F 8E22 7471 A1AE B30C EA43 2CC2 E47F AEA2 6659

To claim this, I am signing this object:

Understanding Kafka

  • Kafka - publish-subscribe messaging system
  • All incoming data is placed in Kafka
  • All outgoing data is read from Kafka
  • Messages organized into topics

Topics

  • Messages are sent to / read from (published to / subscribed from) topics