Skip to content

Instantly share code, notes, and snippets.

@gfreezy
gfreezy / gocd.plugin.zsh
Created September 13, 2014 14:12
zsh plugin for go
function gorun() {
$GOPATH/bin/$1
}
function gosrc() {
cd $GOPATH/src/${1:-/github.com/gfreezy}
}
function gopkg() {
cd $GOPATH/pkg/${1:-darwin_amd64/github.com/gfreezy}
@gfreezy
gfreezy / mfschunkserver
Last active August 29, 2015 14:01
moosefs init.d
#!/bin/sh -e
# ============================================
# mfschunkserver - Starts the Moosefs chunkserver daemon.
# ============================================
#
# :Usage: /etc/init.d/mfschunkserver {start|stop|reload|restart|test|status}
#
### BEGIN INIT INFO