Skip to content

Instantly share code, notes, and snippets.

View nesv's full-sized avatar

Nick Saika nesv

View GitHub Profile
@border
border / Makefile
Created January 12, 2011 01:36
json example in golang
include $(GOROOT)/src/Make.inc
GOFMT=gofmt -spaces=true -tabindent=false -tabwidth=4
all:
$(GC) jsontest.go
$(LD) -o jsontest.out jsontest.$O
format:
$(GOFMT) -w jsontest.go
@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"
@jingle
jingle / flac2mp3.sh
Created February 17, 2013 14:22
Convert flac to mp3 using avconv
#!/bin/bash
find "$1" -type f -name "*.flac" -print0 | while read -d $'\0' song
do
output=${song%.flac}.mp3
avconv -i "$song" -metadata album="$1" -metadata comment="Jingle" -b 192k "$output"
done
@ncw
ncw / README.txt
Last active February 20, 2024 19:30 — forked from spikebike/client output
Client side certificates with go
This demonstrates how to make client side certificates with go
First generate the certificates with
./makecert.sh test@test.com
Run the server in one terminal
go run server.go