Skip to content

Instantly share code, notes, and snippets.

View achetronic's full-sized avatar
🧙‍♂️
Crafting arcane magic

Alby Hernández achetronic

🧙‍♂️
Crafting arcane magic
View GitHub Profile
@jbardin
jbardin / proxy_copy.go
Last active April 27, 2025 20:47
Go TCP Proxy pattern
package proxy
import (
"io"
"log"
"net"
)
func Proxy(srvConn, cliConn *net.TCPConn) {
// channels to wait on the close event for each connection
@daniel-garcia
daniel-garcia / simple_ssh_server.go
Created September 14, 2012 04:28
simple ssh server
package main
import (
"fmt"
"io/ioutil"
"code.google.com/p/go.crypto/ssh"
"code.google.com/p/go.crypto/ssh/terminal"
)
@vmihailenco
vmihailenco / proxy.go
Created November 20, 2011 15:22
Simple TCP proxy in Golang
package main
import (
"bytes"
"encoding/hex"
"flag"
"fmt"
"io"
"log"
"net"