Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am nf on github.
  • I am enneff (https://keybase.io/enneff) on keybase.
  • I have a public key ASDOLblCc_TPjv1FYdUN6hJHdo9s9yDVPIW2yAiA6MYStgo

To claim this, I am signing this object:

@nf
nf / skeleton.go
Last active May 17, 2017 21:47
skeleton upspin server
package main
import (
"fmt"
"net/http"
"upspin.io/access"
"upspin.io/cloud/https"
"upspin.io/config"
"upspin.io/errors"
@nf
nf / nofrils-adg.vim
Created December 6, 2016 02:29
adg's modified nofrils vim color scheme
" Name: modified nofrils
" Author: adg
" URL: based on https://github.com/robertmeta/nofrils
" (see this url for latest release & screenshots)
" License: OSI approved MIT license
" Modified: 2016 Feb 26
hi clear
if exists("syntax_on")
syntax reset
@nf
nf / test.yaml
Created June 22, 2016 03:06 — forked from anonymous/test.yaml
apiVersion: v1
kind: List
items:
- kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: frontend
spec:
replicas: 1
template:
apiVersion: v1
kind: List
items:
- kind: Deployment
apiVersion: v1
metadata:
name: frontend
spec:
replicas: 1
template:
@nf
nf / analyze.go
Last active January 12, 2016 21:14
'spent' script to log where time is spent
package main
import (
"bufio"
"fmt"
"net/url"
"os"
"regexp"
"sort"
"strconv"
#!/bin/bash -e
echo '
PATH=$HOME/go/bin:$PATH
export GOPATH=$HOME
export CDPATH=.:$HOME/src/golang.org/x:$HOME/go/src:$HOME/src/github.com:$HOME/src/github.com/nf:$HOME/src/github.com/adg
export EDITOR=vim
' >> ~/.profile
sudo apt-get update
@nf
nf / vm-setup.sh
Last active June 14, 2023 22:08
Script for setting up Debian Jessie VM with my development environment
#!/bin/bash -e
echo '
PATH=$HOME/go/bin:$PATH
export GOPATH=$HOME
export CDPATH=.:$HOME/src/golang.org/x:$HOME/go/src:$HOME/src/github.com:$HOME/src/github.com/nf:$HOME/src/github.com/adg
export EDITOR=vim
' >> ~/.profile
sudo apt-get update
package main
import (
"flag"
"log"
"net/http"
"strings"
"sync"
"time"
@nf
nf / gist:6076798
Created July 25, 2013 03:56
Go package line counts
69173 syscall
48635 runtime
17797 net
15842 net/http
11672 crypto/tls
9402 math
9284 unicode
8416 reflect
8322 math/big
7808 encoding/gob