Skip to content

Instantly share code, notes, and snippets.

View keybase.md

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
skeleton upspin server
View skeleton.go
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 Dec 6, 2016
adg's modified nofrils vim color scheme
View nofrils-adg.vim
" 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
View test.yaml
apiVersion: v1
kind: List
items:
- kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: frontend
spec:
replicas: 1
template:
View gist:e4c994000adb9b7ea44ab9b9b9b4ebb4
apiVersion: v1
kind: List
items:
- kind: Deployment
apiVersion: v1
metadata:
name: frontend
spec:
replicas: 1
template:
@nf
nf / analyze.go
Last active Jan 12, 2016
'spent' script to log where time is spent
View analyze.go
package main
import (
"bufio"
"fmt"
"net/url"
"os"
"regexp"
"sort"
"strconv"
View ubuntu-setup.sh
#!/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 Jun 2, 2022
Script for setting up Debian Jessie VM with my development environment
View vm-setup.sh
#!/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
View fanout.go
package main
import (
"flag"
"log"
"net/http"
"strings"
"sync"
"time"
@nf
nf / gist:6076798
Created Jul 25, 2013
Go package line counts
View gist:6076798
69173 syscall
48635 runtime
17797 net
15842 net/http
11672 crypto/tls
9402 math
9284 unicode
8416 reflect
8322 math/big
7808 encoding/gob