This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
# ============================================ | |
# mfschunkserver - Starts the Moosefs chunkserver daemon. | |
# ============================================ | |
# | |
# :Usage: /etc/init.d/mfschunkserver {start|stop|reload|restart|test|status} | |
# | |
### BEGIN INIT INFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pushRight = slate.operation("push", { | |
"direction": "right", | |
"style": "bar-resize:screenSizeX/2" | |
}); | |
var pushLeft = slate.operation("push", { | |
"direction": "left", | |
"style": "bar-resize:screenSizeX/2" | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# exit when no parameter provided | |
test -z "$*" && exit 0 | |
id=`echo "$*" | md5sum | cut -d " " -f 1` | |
idfile="/tmp/$id" | |
if [ ! -e $idfile ]; then | |
touch $idfile | |
$@ | |
rm $idfile | |
exit -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<i class="macbook"></i> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<i class="macbook"></i> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<i class="macbook"></i> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contributor: zhuqin <zhuqin83@gmail.com> | |
# Contributor: Mic92 <jthalheim@gmail.com> | |
pkgname=emacs-gtk3-git | |
pkgver=20111204 | |
pkgrel=1 | |
pkgdesc="Gnu Emacs with gtk3 enabled from Git and use LC_CTYPE=zh_CN.utf8 for prefix when executing Emacs" | |
url="http://www.gnu.org/software/emacs/emacs.html" | |
license=('GPL') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'anything) | |
(defun list-project-files (repo) | |
"Return an alist of all filenames in the project and their path." | |
(split-string (shell-command-to-string (format "cd %s && git ls-files" repo)))) | |
(defun find-git-repo (dir) | |
"Find base git directory" | |
(if (string= "/" dir) | |
(message "Not In A Git Repository") | |
(if (file-exists-p (expand-file-name ".git/" dir)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{ | |
"caption": "Sync: Pull", | |
"command": "sync_pull" | |
} | |
,{ | |
"caption": "Sync: Push", | |
"command": "sync_push" | |
} | |
] |