Skip to content

Instantly share code, notes, and snippets.

View oosidat's full-sized avatar

Osama Sidat oosidat

View GitHub Profile
@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
// Running Instructions
// 1. Get a docker ELK instance up and running - I used https://github.com/deviantony/docker-elk
// 2. Compile this (fill in the right variables before)
// 3. Run this script
// 4. ???
// 5. Go to Kibana to see all the click messages
package main
import (