Skip to content

Instantly share code, notes, and snippets.

Paul Mach paulmach

  • Cisco Inc.
  • Oakland, CA
Block or report user

Report or block paulmach

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@paulmach
paulmach / serve.go
Last active Oct 5, 2019
Simple Static File Server in Go
View serve.go
/*
Serve is a very simple static file server in go
Usage:
-p="8100": port to serve on
-d=".": the directory of static files to host
Navigating to http://localhost:8100 will display the index.html or directory
listing file.
*/
package main
View gist:91a60f80a653addad5da9b045425e38f
### Keybase proof
I hereby claim:
* I am paulmach on github.
* I am paulmach (https://keybase.io/paulmach) on keybase.
* I have a public key ASD-u3EKAps9Uwzwr6IwdhMRJCaJw8yLXM2JzoiKI6KarQo
To claim this, I am signing this object:
@paulmach
paulmach / consistent.go
Last active Aug 29, 2015
Check uniformity of consistent hash using crc32
View consistent.go
package main
import (
"log"
"math/rand"
"time"
"github.com/strava/go.serversets/fixedset"
"github.com/strava/go.serversets/mcset"
)
You can’t perform that action at this time.