Skip to content

Instantly share code, notes, and snippets.

version: "3"
services:
kafka:
image: confluentinc/cp-kafka
depends_on:
- zookeeper
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
@dthtvwls
dthtvwls / template-apply.go
Last active June 8, 2018 17:11
put a json structure on stdin, call `template-apply path/to/template`, receive executed template on stdout
package main
import (
"encoding/json"
"io/ioutil"
"os"
"text/template"
)
func check(err error) {
@dthtvwls
dthtvwls / app.py
Created March 16, 2021 23:48
CORS proxy
from flask import Flask, request
from flask_cors import CORS
import requests
app = Flask(__name__)
CORS(app)
@app.route('/<path:path>')
def root(path):