2014-10-01から1ヶ月間の記事一覧
oh-my-zshを使っているので、historyコマンドを実行する時にバックスラッシュをつけてあげる必要があるのがミソ。 ~/.zshrcに以下を追加する function peco-select-history() { local tac if which tac > /dev/null; then tac="tac" else tac="tail -r" fi B…
rbenv.shを/etc/profile.dに置いて、それをsourceコマンドで読み込ませる。 vagrant環境でpuppetで開発環境を作っていて、 rbenv.shを/etc/profile.dに置いて、それをsourceコマンドで読み込ませてやろうと思って作った。 イメージとして、 vagrant ssh cd /…
何も考えずにjsonを取ってくると、こうなる。 $ curl http://api.openweathermap.org/data/2.5/weather\?q\=Tokyo,jp {"coord":{"lon":139.69,"lat":35.69},"sys":{"type":1,"id":7619,"message":0.0358,"country":"JP","sunrise":1413146764,"sunset":14131…