Skip to content

Instantly share code, notes, and snippets.

@jzila
jzila / rc.local
Last active November 21, 2018 21:32
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#!/bin/bash
_term() {
echo "Caught TERM signal"
kill -TERM "$SERVICE"
kill -TERM "$KBFS"
exit 0
}
trap _term SIGTERM
@jzila
jzila / a_test_test.go
Last active May 5, 2017 23:02
Various Go Dispatch Tests
package test
import (
"testing"
)
func sum(a, i uint64) uint64 {
return a + i
}
@jzila
jzila / keybase.md
Created July 18, 2014 23:23
keybase.md

Keybase proof

I hereby claim:

  • I am jzila on github.
  • I am jzila (https://keybase.io/jzila) on keybase.
  • I have a public key whose fingerprint is 82E2 62DD 625E 8B0B C0B6 0073 75E2 6181 8D28 7864

To claim this, I am signing this object: