Skip to content

Instantly share code, notes, and snippets.

View kenriortega's full-sized avatar
🏠
Working from home

Kenrique Ortega kenriortega

🏠
Working from home
View GitHub Profile

Step 1

To create a cluster, we need to spin up a few empty Redis instances and configure them to run in cluster mode.

Here’s a minimal configuration file for Redis Cluster:

# redis.conf file
port 7000
@kenriortega
kenriortega / proxy.go
Created July 6, 2021 21:52 — forked from vmihailenco/proxy.go
Simple TCP proxy in Golang
package main
import (
"bytes"
"encoding/hex"
"flag"
"fmt"
"io"
"log"
"net"
@kenriortega
kenriortega / main.go
Created July 5, 2021 02:48 — forked from StarBuckR/main.go
Golang Ldap Authentication, Bind and Search, including Anonymous Bind
package main
import (
"fmt"
"log"
"github.com/go-ldap/ldap/v3"
)
const (