Skip to content

Instantly share code, notes, and snippets.

Brian Stengaard stengaard

Block or report user

Report or block stengaard

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
View gc_play.go
// An example of manual GC work in Go. Disconnects it's
// receiver before GC to avoid outstanding requests.
// This implementation runs GC every 10 seconds - which is
// slightly idiotic. I bet you could come up with a better
// strategy.
// This is meant to illustrate how to sidestep the Go GC in
// situations where the GC pause bites you in the in ass.
package main

Keybase proof

I hereby claim:

  • I am stengaard on github.
  • I am stengaard ( on keybase.
  • I have a public key whose fingerprint is F0E6 CB1A 2FBC 793C 9AA7 96CA B221 B141 AAC1 1E96

To claim this, I am signing this object:

def profile_this(fn):
import cProfile
def profiled_fn(*args, **kwargs):
fpath = fn.__name__ + ".profile"
prof = cProfile.Profile()
ret = prof.runcall(fn, *args, **kwargs)
return ret
return profiled_fn
stengaard / OpenswanRSALoadError
Created Jun 19, 2012
Openswan RSA load error
View OpenswanRSALoadError
If you ever see
ipsec__plutorun: 003 "/etc/ipsec.secrets" line 16: error loading RSA private key file
in your syslog
root@:/etc/ipsec.d/private# openssl rsa -in -outform pem -out
writing RSA key
may very well help.
You can’t perform that action at this time.