Skip to content

Instantly share code, notes, and snippets.

View remast's full-sized avatar
🥎
Busy practicing ...

Jan Stamer remast

🥎
Busy practicing ...
View GitHub Profile
@remast
remast / compose.yml
Created August 18, 2024 10:47
Kafka Base Setup for Docker Compose
name: kafka-base-setup
services:
# TODO: Add your Services
kafka-zookeeper:
image: confluentinc/cp-zookeeper:7.7.0
environment:
ZOOKEEPER_CLIENT_PORT: 2181
@remast
remast / step-04-main.go
Created December 15, 2017 12:55
Schritt 4 — Feinschliff
package main
import (
"fmt"
"log"
"net/http"
"net/http/httputil"
"net/url"
"os"
@remast
remast / step-03-main.go
Last active December 15, 2017 13:39
Schritt 3 — Gzip Komprimierung für statische Resourcen
package main
import (
"log"
"net/http"
"net/http/httputil"
"net/url"
"github.com/NYTimes/gziphandler"
"github.com/gorilla/mux"
@remast
remast / step-02-main.go
Last active December 15, 2017 13:38
Schritt 2 — Proxy für Backend API
package main
import (
"log"
"net/http"
"net/http/httputil"
"net/url"
"github.com/gorilla/mux"
)
@remast
remast / step-01-main.go
Created December 15, 2017 12:50
Schritt 1 — HTTP Server für statische Resourcen
package main
import (
"log"
"net/http"
"github.com/gorilla/mux"
)
func main() {