Skip to content

Instantly share code, notes, and snippets.

@taurenk
taurenk / intro.md
Created April 3, 2020 17:39
Reporting 2.0

Reporting 2.0

Current Reporting Design

Potential Phases

Phase 01: Schema Design Phase 02: Rough Prototyping API + UI

@taurenk
taurenk / Kafka-Docker-Swarm-Compose.md
Created June 12, 2018 16:29
Kafka Docker Swarm Compose Guide

Kafka Docker Swarm Compose Guide

The following compose file will allow you to run a Kafka cluster (3 kafka + 3 zookeeper nodes) in Docker swarm across 3 Swarm Manager nodes.

version: "3.2"

# https://docs.docker.com/compose/compose-file/#long-syntax-3
# https://docs.confluent.io/current/installation/docker/docs/operations/external-volumes.html#data-volumes-for-kafka-zookeeper
volumes:
  zookeeper1-data:
@taurenk
taurenk / ws_auth.js
Last active July 13, 2017 16:22
Simple Node Web Socket Authentication
/******************/
/** Server Code **/
const WebSocket = require('ws');
const apiKey = 'secret-key';
// https://github.com/websockets/ws/blob/master/doc/ws.md#class-websocketserver
let verifyClient = (info, cb) => {
let submittedApiKey = info.req.headers.apikey;
if (!submittedApiKey) {