Skip to content

Instantly share code, notes, and snippets.

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

Oliver Nadj olivernadj

🏠
Working from home
  • namecheap.com
  • Serbia, Horgos
View GitHub Profile
@Boerworz
Boerworz / main.go
Last active October 10, 2023 09:14
Capturing the HTTP status code from http.ResponseWriter
package main
import (
"fmt"
"log"
"net/http"
)
func main() {
// We need to cast handleRoot to a http.HandlerFunc since wrapHandlerWithLogging
@miqm
miqm / setup.md
Created May 1, 2018 12:26
VPN L2TP/IPSec

Network config

Server IP: 192.168.1.200

GW IP: 192.168.1.1

VPN IP pool: 192.168.0.128/26

Forward UDP port 500 and UDP port 4500

setup

@mxk
mxk / protoc.go
Created August 27, 2019 15:21
TensorFlow Serving gRPC interface generator for Go
//+build ignore
// TensorFlow Serving gRPC interface generator.
//
// This script works around a bunch of issues (as of 2019-08-25) between Go's
// protobuf compiler plugin, Go modules, and definitions of TensorFlow and
// TensorFlow Serving proto files. It assumes that protoc and protoc-gen-go are
// on your PATH.
//
// git clone -b r1.15 https://github.com/tensorflow/tensorflow.git