sudo apt-get install ack-grep
Ubuntuならこれでもいいのですが、まあドキュメントを読んで使いやすいものを選ぶとよろしいかと。
ansible file stat
ファイルの存在確認とかのドキュメントはこちら。
stat - retrieve file or file system status — Ansible Documentation
install ruby documentation
公式を、改めて読んで、わかること
- どのツールを使ってインストールしたらいいかは明言されていない
- apt/yumなどからは古いrubyしか入らないので非推奨
- ソースコードからのインストールからでもいいけど、パッケージ管理されてないよ
memo: rbenv ubuntu
rbenvとかruby-buildは本家のりどみから取ってくるとして、別途apt-getでlibssl-devとlibreadline-devのインストールが必要なようだ。
sudo apt-get install -y libssl-dev libreadline-dev
peco v0.5.0
この前のやつが本ちゃんでリリースされたっぽい。
なお、fishだとexecでパイプラインが使えないようなので、exec抜きでもいける
ack $args . | peco --exec 'awk -F : '"'"'{print "+" $2 " " $1}'"'"' | xargs less '
fish shell documentation
exec replaces the currently running shell with a new command. On successful completion, exec never returns. exec cannot be used inside a pipeline.
どうしようか。
peco install
最終的にGOPATHはghqのパスと同じにした
[ghq] root = ~/projects/src
からの、glide installとgo build cmd/peco/peco.go。そして、ソースのディレクトリにできるpecoファイルにaliasを貼っておく
java.io.tmpdir
The default temporary-file directory is specified by the system property java.io.tmpdir. On UNIX systems the default value of this property is typically “/tmp” or “/var/tmp”; on Microsoft Windows systems it is typically “C:\WINNT\TEMP”.
JVMの設定でtmpのディレクトリを決めることができるそうで。
configuration - Environment variable to control java.io.tmpdir? - Stack Overflow
golang 1.8
最新版は普通に入れるしかないっぽい
Emacs Mirror
このあたりからダウンロードする
ansible-vault view
ansible-vault view
で暗号化したファイルをterminal上でみれる。
python venv pyenv
別にpyenv使わなくてもいいかなという感じ 普通に使う文にはpython3でよさそう ただし、apt-get install python3で入るバージョンは3.5.2 素のpythonは2.7
もう少し調べて見る必要はありそう
memo: postfix ansible
参考になるplaybook
ubuntu 16.10 caps/ctrlキー入れ替え
/etc/default/keyboard
# KEYBOARD CONFIGURATION FILE # Consult the keyboard(5) manual page. XKBMODEL="pc105" XKBLAYOUT="jp" XKBVARIANT="" #XKBOPTIONS="" XKBOPTIONS="ctrl:nocaps" BACKSPACE="guess"
あとはログアウト。