-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.shell-snippets
executable file
·425 lines (357 loc) · 18.4 KB
/
.shell-snippets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
# apache
tail -n 5000 /usr/local/apache2/logs/access_log | awk '{print $1}' | sort | uniq -c | sort -gr | head -n 4
tail -n 5000 /usr/local/apache2/logs/access_log | awk '{print $2}' | sort | uniq -c | sort -gr | head -n 4
tail -n 5000 /usr/local/apache2/logs/access_log | awk '{print $12}' | sort | uniq -c | sort -gr | head -n 4
tail -n 5000 /usr/local/apache2/logs/access_log | awk '{print $13}' | sort | uniq -c | sort -gr | head -n 4
# search
netstat -ltapn | grep ESTABLISHED | more
netstat -ltan | grep ":80 " | awk '{print $5}' | awk -F : '{print $4}' | sort | uniq -c | sort -nr | head
lsof -i:80
# dstat
dstat -Tclmdrn
dstat -Tclm
dstat -Tclr
dstat -Tclnd
dstat -Tcldr
dstat --top-cpu --top-cputime
dstat --top-io --top-bio
dstat --top-io-adv --top-bio-adv
# openssl
openssl x509 -noout -modulus -in *.crt | openssl md5
openssl rsa -noout -modulus -in *.key | openssl md5
openssl req -noout -modulus -in *.csr | openssl md5
# date
date +%Y%m%d
# find
find . -type f -mtime +10
# kill
kill -9 $(ps -ef | grep -i vlc | grep -v grep | awk '{ print $2 }')
kill -9 $(ps -ef | grep -i firefox | grep -v grep | awk '{ print $2 }')
# screensaver
open /System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app
# exiftool
exiftool -progress '-FileName < CreateDate' -d /Volumes/backup/Photos/%Y-%m/%Y-%m-%d_%H-%M-%S%%-c.%%e *.{JPG,jpg}
exiftool -progress '-FileName < CreateDate' -d /Volumes/backup/Mov/%Y-%m/%Y-%m-%d_%H-%M-%S%%-c.%%e *.{MOV,mov}
exiftool -progress '-FileName < CreateDate' -d /Volumes/backup/mp4/%Y-%m/%Y-%m-%d_%H-%M-%S%%-c.%%e *.{MP4,mp4}
exiftool -progress '-FileName < DateTimeOriginal' -d /Volumes/backup/m2ts/%Y-%m/%Y-%m-%d_%H-%M-%S%%-c.%%e *.{mts,MTS}
find . -type f -iname "*.jpg" -print0 | xargs -0 exiftool -progress '-FileName < CreateDate' -d /Volumes/backup/Photos/%Y-%m/%Y-%m-%d_%H-%M-%S%%-c.%%e
find . -type f -iname "*.mov" -print0 | xargs -0 exiftool -progress '-FileName < CreateDate' -d /Volumes/backup/Mov/%Y-%m/%Y-%m-%d_%H-%M-%S%%-c.%%e
find . -type f -iname "*.mp4" -print0 | xargs -0 exiftool -progress '-FileName < CreateDate' -d /Volumes/backup/mp4/%Y-%m/%Y-%m-%d_%H-%M-%S%%-c.%%e
find . -type f -iname "*.png" -print0 | xargs -0 exiftool -progress '-FileName < FileModifyDate' -d /Volumes/backup/Photos/%Y-%m/%Y-%m-%d_%H-%M-%S%%-c.%%e
find . -type f -iname "*.jpg" -print0 | xargs -0 exiftool -progress '-FileName < FileModifyDate' -d /Volumes/backup/IMG/%Y-%m/%Y-%m-%d_%H-%M-%S%%-c.%%e
find . -type f -iname "*.m2ts" -print0 | xargs -0 exiftool -progress '-FileName < DateTimeOriginal' -d /Volumes/backup/m2ts/%Y-%m/%Y-%m-%d_%H-%M-%S%%-c.%%e
find . -type f -iname "*.mts" -print0 | xargs -0 exiftool -progress '-FileName < DateTimeOriginal' -d /Volumes/backup/m2ts/%Y-%m/%Y-%m-%d_%H-%M-%S%%-c.%%e
# youtube-dl
youtube-dl -x --audio-format mp3 --audio-quality 0
# ghq
# github
# me
ghq get https://github.com/yukimemi/md2docx.git
ghq get https://github.com/yukimemi/prezto.git
ghq get https://github.com/yukimemi/tmux-powerline.git
ghq get https://github.com/yukimemi/gitstatus.git
ghq get https://github.com/yukimemi/coffee-script-on-jscript.git
ghq get https://github.com/yukimemi/ActiveXFileWrapper.js.git
ghq get https://github.com/yukimemi/copybackup.git
ghq get https://github.com/yukimemi/core.git
ghq get https://github.com/yukimemi/yukimemi.github.io.git
ghq get https://github.com/yukimemi/Brewfile.git
ghq get https://github.com/yukimemi/homebrew-custom.git
ghq get https://github.com/yukimemi/powerline.git
ghq get https://github.com/yukimemi/ansible-playbook.git
ghq get https://github.com/yukimemi/makejscript.git
ghq get https://github.com/yukimemi/spyrun.git
ghq get https://github.com/yukimemi/vim-jsfmt.git
ghq get https://github.com/yukimemi/imexpand.git
ghq get https://github.com/yukimemi/gfi.git
ghq get https://github.com/yukimemi/file.git
ghq get https://github.com/yukimemi/golang-ghr.git
# others
ghq get https://github.com/liangxianzhe/oh-my-vim.git
ghq get https://github.com/Shougo/shougo-s-github.git
ghq get https://github.com/eagletmt/dotfiles.git
ghq get https://github.com/antoyo/.dotfiles
ghq get https://github.com/hinagishi/dotfiles
ghq get https://github.com/t9md/dotfiles
ghq get https://github.com/supermomonga/dotfiles.git
ghq get https://github.com/tcnksm/go-compile-scripts.git
ghq get https://github.com/osyo-manga/cpp-vimrc.git
ghq get https://github.com/Xfennec/cv.git
ghq get https://github.com/BestPig/cv.git # for mac
ghq get https://github.com/tcnksm/dotfiles.git
ghq get https://github.com/cd01/vimppm.git
ghq get https://github.com/powerline/fonts.git
ghq get https://github.com/powerline/powerline.git
ghq get https://github.com/itchyny/miv.git
ghq get https://github.com/joefitzgerald/packer-windows.git
ghq get https://github.com/glidenote/dotfiles.git
ghq get https://github.com/rhysd/dotfiles.git
ghq get https://github.com/b4b4r07/dotfiles.git
ghq get https://github.com/sorah/niconico.git
ghq get https://github.com/vimperator/vimperator-labs.git
ghq get https://github.com/vimpr/vimperator-colors.git
ghq get https://github.com/vimpr/vimperator-plugins.git
ghq get https://github.com/tomokuni/Myrica.git
ghq get https://github.com/coolwanglu/guake-colors-solarized.git
ghq get https://github.com/erroneousboat/guake-colors-monokai.git
ghq get https://github.com/l0b0/xterm-color-count.git
ghq get https://github.com/kenhys/mayu.git
ghq get https://github.com/atom/electron.git
ghq get https://github.com/atom/electron-starter.git
ghq get https://github.com/tacahilo/.vim
ghq get https://github.com/knsv/mermaid.git
ghq get https://github.com/mawatari/mac-provisioning.git
ghq get https://github.com/twada/macbook-provisioning.git
ghq get https://github.com/tell-k/blister-pack.git
ghq get https://github.com/supistar/dotfiles.git
ghq get https://github.com/k2wanko/dotfiles.git
ghq get https://github.com/joe-re/dotfiles.git
ghq get https://github.com/ansible/ansible-examples.git
ghq get https://github.com/makiton/playbook-osx.git
ghq get https://github.com/seebi/tmux-colors-solarized.git
ghq get https://github.com/jimeh/tmux-themepack.git
ghq get https://github.com/mbadolato/iTerm2-Color-Schemes.git
ghq get https://github.com/yuroyoro/dotfiles.git
ghq get https://github.com/google/material-design-lite.git
ghq get https://github.com/suisho/example-electron-babel.git
ghq get https://gist.github.com/ce81e95c6f6c5747d8aa.git \# gulp for es6
ghq get https://github.com/sskyu/gulp-webpack-skeleton.git
ghq get https://github.com/sugarshin/gulpfiles.git
ghq get https://github.com/tsuyoshiwada/sample-webpack-coffee.git
ghq get https://github.com/KazIgu/gulp-sample.git
ghq get https://github.com/Quramy/electron-jsx-babel-boilerplate.git
ghq get https://github.com/RamblingCookieMonster/Invoke-Parallel.git
ghq get https://github.com/yascentur/RictyDiminished.git
ghq get https://github.com/mzyy94/RictyDiminished-for-Powerline.git
ghq get https://github.com/monochromegane/dotfiles
ghq get https://github.com/delphinus35/dotfiles
ghq get https://github.com/aereal/dotfiles
ghq get https://github.com/altercation/solarized
ghq get https://github.com/nathanbuchar/atom-one-dark-terminal
ghq get https://github.com/bokuweb/ithildin
ghq get https://github.com/k0kubun/Nocturn
ghq get https://github.com/erukiti/tomato
ghq get https://github.com/hnakamur/execcommandexample
ghq get https://github.com/MaxMEllon/.dotfiles
ghq get https://github.com/coreos/etcd
ghq get https://github.com/mattn/pcd
ghq get https://github.com/mattn/sudo
ghq get https://github.com/ashitani/golangtips
ghq get https://github.com/rhysd/dogfiles
ghq get https://github.com/yosisa/dotfiles
ghq get https://github.com/itchyny/dotfiles
ghq get https://github.com/Kayant/dotfiles
ghq get https://github.com/cocopon/dotfiles
# bitbucket
ghq get https://bitbucket.org/yukimemi/haskell.git
ghq get https://bitbucket.org/yukimemi/node-webkit.git
ghq get https://bitbucket.org/yukimemi/yukimemi.bitbucket.org.git
ghq get https://bitbucket.org/yukimemi/vagrant.git
ghq get https://bitbucket.org/yukimemi/packer-windows.git
ghq get https://bitbucket.org/yukimemi/clojure.git
ghq get https://bitbucket.org/yukimemi/go.git
ghq get https://bitbucket.org/yukimemi/win.git
ghq get https://bitbucket.org/yukimemi/scripts.git
ghq get https://bitbucket.org/yukimemi/coffee.git
ghq get https://bitbucket.org/yukimemi/nicobrowser.git
ghq get https://bitbucket.org/yukimemi/coffee-windows.git
ghq get https://bitbucket.org/yukimemi/cpp.git
ghq get https://bitbucket.org/yukimemi/ps1.git
ghq get https://bitbucket.org/yukimemi/books.git
ghq get https://bitbucket.org/yukimemi/typescript.git
ghq get https://bitbucket.org/yukimemi/jscript.git
ghq get https://bitbucket.org/yukimemi/ruby.git
ghq get https://bitbucket.org/yukimemi/nicodown.git
ghq get https://bitbucket.org/yukimemi/electron.git
ghq get https://bitbucket.org/yukimemi/mermaid.git
ghq get https://bitbucket.org/yukimemi/tswsh.git
ghq get https://bitbucket.org/yukimemi/fcon.git
ghq get https://bitbucket.org/yukimemi/yukimemi.git # not use !
git clone https://bitbucket.org/yukimemi/yukimemi.git themes/yukimemi
# Gist
ghq get https://gist.github.com/5507969.git \# golang copy file example
# Go lang
# me
go get -u github.com/yukimemi/copybackup
go get -u github.com/yukimemi/copybackup/cmd/copybackup
go get -u github.com/yukimemi/makejscript
go get -u github.com/yukimemi/spyrun/cmd/spyrun
go get -u github.com/yukimemi/gsr
go get -u github.com/yukimemi/anaperf
# others
go get -u github.com/jessevdk/go-flags
go get -u github.com/umisama/golog
go get -u github.com/smartystreets/goconvey
go get -u github.com/fatih/color
go get -u github.com/briandowns/spinner
go get -u go.uber.org/zap
go get -u github.com/hnakamur/zap-ltsv
go get -u github.com/k0kubun/pp
# go get -u github.com/mitchellh/gox && gox -build-toolchain
go get -u github.com/mitchellh/gox
go get -u github.com/laher/goxc
go get -u github.com/kr/godep
go get -u github.com/spf13/hugo
go get -u golang.org/x/text/encoding/japanese
go get -u golang.org/x/text/encoding
go get -u golang.org/x/text/transform
go get -u github.com/headzoo/surf
go get -u github.com/laurent22/massren && massren --config editor vim
go get -u golang.org/x/tools/cmd/gorename
go get -u github.com/tcnksm/ghr
go get -u github.com/yuya-takeyama/ggallin
go get -u github.com/mattn/goemon/cmd/goemon
go get -u github.com/mattn/memo
go get -u github.com/mattn/go-shellwords
go get -u github.com/Songmu/ghg/cmd/ghg
# go get -u github.com/BurntSushi/toml
go get -u github.com/naoina/toml
go get -u github.com/pranavraja/tldr
go get -u github.com/ejcx/passgo
go get -u github.com/massa142/hngo
go get -u github.com/massa142/gotebu
go get -u github.com/mattn/gobanner
go get -u github.com/mattn/files
go get -u github.com/mattn/gom
go get -u github.com/spf13/cobra/cobra
go get -u github.com/b4b4r07/gomi
go get -u github.com/b4b4r07/gist
go get -u github.com/jteeuwen/go-bindata/...
go get -u github.com/syossan27/kirimori
go get -u github.com/urfave/cli
go get -u github.com/motemen/gobump/cmd/gobump
go get -u github.com/golang/dep/...
go get -u github.com/y13i/j2y
go get -u github.com/atotto/clipboard/cmd/gopaste
go get -u github.com/atotto/clipboard/cmd/gocopy
go get -u gopkg.in/go-playground/validator.v9
go get -u github.com/gosuri/uilive
go get -u github.com/gosuri/uiprogress
go get -u github.com/gosuri/uitable
go get -u github.com/Code-Hex/battery/cmd/battery
go get -u github.com/ulule/deepcopier
go get -u github.com/github/hub
go get -u github.com/monochromegane/the_platinum_searcher/...
# gore
go get -u github.com/motemen/gore && go get -u github.com/nsf/gocode && go get -u github.com/k0kubun/pp && go get -u golang.org/x/tools/cmd/godoc
# gcli
go get -d github.com/tcnksm/gcli && cd $GOPATH/src/github.com/tcnksm/gcli && make install
# Hugo
git clone --recursive https://github.com/spf13/hugoThemes themes
# Get deploy.sh
wget https://github.com/X1011/git-directory-deploy/raw/master/deploy.sh && chmod +x deploy.sh
# oh-my-vim
curl -L https://raw.github.com/yukimemi/oh-my-vim/master/tools/prepare_mac.sh | sh
curl -L https://raw.github.com/yukimemi/oh-my-vim/master/tools/install.sh | sh
curl -L https://raw.github.com/yukimemi/oh-my-vim/master/tools/uninstall.sh | sh
# Add git upstream repo
git remote add upstream https://github.com/erikw/tmux-powerline.git
git remote add upstream https://github.com/sorin-ionescu/prezto.git
# beer http://deeeet.com/writing/2014/04/30/beer-on-terminal/
ruby -e 'C=`stty size`.scan(/\d+/)[1].to_i;S="\xf0\x9f\x8d\xba";a={};puts "\033[2J";loop{a[rand(C)]=0;a.each{|x,o|;a[x]+=1;print "\033[#{o};#{x}H \033[#{a[x]};#{x}H#{S} \033[0;0H"};$stdout.flush;sleep 0.01}'
# snow http://melborne.github.io/2013/12/13/translate-let-it-snow-in-the-terminal/
ruby -e 'C=`stty size`.scan(/\d+/)[1].to_i;S=["2743".to_i(16)].pack("U*");a={};puts "\033[2J";loop{a[rand(C)]=0;a.each{|x,o|;a[x]+=1;print "\033[#{o};#{x}H \033[#{[*31..37].sample}m \033[#{a[x]};#{x}H#{S} \033[0;0H \033[0m"};$stdout.flush;sleep 0.1}'
# sysctl
sudo sysctl -w net.inet.tcp.delayed_ack=0
# git config
git config --global ghq.root ~/.ghq/src
# ievms
curl -s https://raw.githubusercontent.com/xdissent/ievms/master/ievms.sh | bash
curl -s https://raw.githubusercontent.com/xdissent/ievms/master/ievms.sh | env IEVMS_VERSIONS="EDGE" bash
open https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/
# neobundle update
vim -g -f -c "silent exe 'NeoBundleUpdate | q'" &> /dev/null
# mac search profile
curl -sL https://raw.githubusercontent.com/syui/json-script/master/script/macbook-model-command.sh | sh
# brew file
brew install rcmdnk/file/brew-file
brew file set_repo -r yukimemi/Brewfile
# vimperator build
cd ~/.ghq/src/github.com/vimperator/vimperator-labs && git pull && make && open -a 'firefox' downloads/vimperator*.xpi
# vimperator-plugins update
cd ~/.ghq/src/github.com/vimpr/vimperator-plugins && git pull && cd ~/.ghq/src/github.com/caisui/vimperator && git pull
# Install vimppm
cd ~/.vimperator && git clone [email protected]:yukimemi/vimppm && cd vimppm && git remote add upstream https://github.com/cd01/vimppm
cd ~/.vimperator && git clone https://github.com/cd01/vimppm
# gitignore.io
git config --global alias.ignore '!gi() { curl -L -s https://www.gitignore.io/api/$@ ;}; gi'
# Install mutate
sudo add-apt-repository ppa:mutate/ppa && sudo apt-get update && sudo apt-get install mutate --no-install-recommends
# Install btsync
sudo add-apt-repository ppa:tuxpoldo/btsync && sudo apt-get update && sudo apt-get install btsync
# Install neovim
sudo add-apt-repository ppa:neovim-ppa/unstable && sudo apt-get update && sudo apt-get install neovim
pip3 install --upgrade neovim && go get -u github.com/nsf/gocode
# Install atom
sudo add-apt-repository ppa:webupd8team/atom && sudo apt-get update && sudo apt-get install atom
# Install mayu
cd ~/.ghq/src/github.com/kenhys/mayu && sudo aptitude install build-essential libboost-iostreams-dev libudev-dev libusb-1.0-0-dev && ./configure --with-boost-libdir=/usr/lib/x86_64-linux-gnu/ && make && sudo make install && sudo chmod +s /usr/local/bin/mayu
# Install dropbox
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf - && wget "https://www.dropbox.com/download?dl=packages/dropbox.py" -O ~/bin/dropbox.py && chmod +x ~/bn/dropbox.py
# Install miv
ghq get ghq get https://github.com/itchyny/miv.git; cd ~/.ghq/src/github.com/itchyny/miv && cabal update && cabal install
# Install pip
curl -kL https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python
# Install powerline
pip install --user powerline-status
# Change https to ssh
git remote set-url origin [email protected]:yukimemi/dotfiles.git
git remote set-url origin [email protected]:yukimemi/prezto.git
# Ansible
curl -L http://git.io/yukimemi-ansible | sh
# Uninstall homebrew
cd /tmp && curl -OL https://raw.githubusercontent.com/Homebrew/install/master/uninstall && chmod +x uninstall && ./uninstall
# Install git-ignore
curl -sL https://raw.githubusercontent.com/yuroyoro/git-ignore/master/git-ignore > ~/bin/git-ignore && chmod +x ~/bin/git-ignore
# Change boot volume to 0 on Mac (yosemite)
sudo nvram SystemAudioVolume=%00 && nvram -p | grep SystemAudioVolume
# npm install
npm i -D babel bower typescript gulp gulp-typescript del browserify tsify debowerify watchify vinyl-transform require-dir gulp-rename gulp-if gulp-exec gulp-load-plugins gulp-plumber gulp-notify gulp-webpack
# Add node_modules/.bin path to envrc
echo "export PATH=\$(npm bin):\$PATH" > .envrc && direnv allow
# Install Ricty Diminished.
curl -LO https://raw.github.usercontent.com/yascentur/RictyDiminished/master/RictyDiminished-Regular.ttf
# Add /etc/auto_master
echo "/Users/yukimemi/mnt auto_nas" | sudo tee -a /etc/auto_master
# Install emacs with homebrew.
brew tap d12frosted/emacs-plus && brew install emacs-plus --with-cocoa --with-gnutls --with-librsvg --with-imagemagick --with-spacemacs-icon && brew linkapps
# Install spacemacs.
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d
# For webpack jscript.
npm i -D json3 babel-core babel-loader babel-polyfill babel-preset-es2015 imports-loader webpack
# vim-go-ide
git clone https://github.com/farazdagi/vim-go-ide.git ~/.vim_go_runtime && sh ~/.vim_go_runtime/bin/install
# emoji commit.
ghq get -u https://gist.github.com/nownabe/85d8595fd142adc426fbfaf2bab015e0; cd ~/.ghq/src/gist.github.com/nownabe/85d8595fd142adc426fbfaf2bab015e0 && git config --global commit.template ~/.ghq/src/gist.github.com/nownabe/85d8595fd142adc426fbfaf2bab015e0/.commit_template
# iTerm2 shell integration.
curl -L https://iterm2.com/misc/install_shell_integration.sh | bash
# Tickeys
brew cask install tickeys
# Install fisherman
curl -Lo ~/.config/fish/functions/fisher.fish --create-dirs git.io/fisherman
# Install fzy
brew tap jhawthorn/fzy; and brew install fzy
# Install gomi
curl -L git.io/gomi | bash
# Install rustup.
curl https://sh.rustup.rs -sSf | sh
# Fish completions.
rustup completions fish > ~/.config/fish/completions/rustup.fish
# Zsh completions.
rustup completions zsh > ~/.zfunc/_rustup
# Install racer and rustfmt
cargo install rustfmt; cargo install racer; cargo install rusty-tags; cargo install cargo-edit; cargo install cargo-update; cargo install cargo-outdated; cargo install clippy;
# Install rust-src component.
rustup component add rust-src
# Install stack for haskell.
curl -sSL https://get.haskellstack.org/ | sh
# Install stack packages
stack install ghc-mod hlint hoogle hfmt;
# Git rebase user and email.
git filter-branch -f --env-filter "GIT_AUTHOR_NAME='yukimemi'; GIT_AUTHOR_EMAIL='[email protected]'; GIT_COMMITTER_NAME='yukimemi'; GIT_COMMITTER_EMAIL='[email protected]';" HEAD
# Install glide.
curl https://glide.sh/get | sh
# Golang debugger.
brew install go-delve/delve/delve
# tmux plugin.
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm