Skip to content

Instantly share code, notes, and snippets.

@clyang
clyang / gist:4edbb710699171de7d6b
Created September 6, 2015 20:18
記錄超長bash history
HOSTNAME="$(hostname)"
HOSTNAME_SHORT="${HOSTNAME%%.*}"
HISTFILE="${HOME}/.history/$(date -u +%Y/%m/%d.%H.%M.%S)_${HOSTNAME_SHORT}_$$"
@clyang
clyang / gist:b3b2683d681c4db8deda
Created February 17, 2015 02:04
Installation Guide for Skicka on Ubuntu 14.04
** 僅在全新的Ubuntu 14.04下測試過 **
1. apt-get update && apt-get install golang git mercurial
2. cd && mkdir go
3. 編輯~/.bashrc檔, 把下列兩行加到底端: vim ~/.bashrc
export GOPATH=$HOME/go
export PATH=$PATH:$HOME/go/bin:/usr/local/go/bin
4. source ~/.bashrc
5. go get github.com/google/skicka
6. skicka init