2014-01-01から1年間の記事一覧

Berkshelfのバージョンが上がったらエラー

% bundle exec berks --version 3.1.4 % bundle exec knife solo cook vagrant Running Chef on vagrant-chef... Checking Chef version... Installing Berkshelf cookbooks to 'cookbooks'... ERROR: ArgumentError: wrong number of arguments (1 for 0)以…

CentOS6.5のPHPのバージョン

$ cat /etc/redhat-release CentOS release 6.5 (Final) $ sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm$ yum info php | grep Version | awk '{print $3}' 5.3.3$ yum --enablerepo=remi info php | grep Version | awk '{p…

シェルで拡張子変更

sh

markdown を md に変更してみる % for i in *.markdown; do mv $i ${i%markdown}md; done

syntasticでperlのsyntaxcheckが動かなくなった件

RTFC 3.4.0 Syntax checker changes: Disable the perl checker by default, for security reasons (lcd047) https://github.com/scrooloose/syntastic/wiki/Changelog https://github.com/scrooloose/syntastic/wiki/Perl%3A---perl#security let g:syntast…

Alignta 空白で整列

vim

GitHub - h1mesuke/vim-alignta: Align Them All! :'<,'>Alignta <<0 \ /2選択範囲内をマージンをとらず、2つめの空白で整列 before color main-head blue default bold color main-tag yellow default bold color main-local-tag yellow default color main…

別ウィンドウでman表示

RTFM bind-key / command-prompt "split-window -p 60 'exec man %%'"

cli実行時にerror_reportingの設定を渡す

php

% /path/to/php -d error_reporting=6135 /path/to/legacy.php

gitで複数のauthor, committerの使い分け

git

環境変数で設定すっと上書きしてくれる % git config --help user.email Your email address to be recorded in any newly created commits. Can be overridden by the GIT_AUTHOR_EMAIL, GIT_COMMITTER_EMAIL, and EMAIL environment variables. See git-co…

The Platinum Searcher

Go言語でag(The Silver Searcher)ライクな高速検索ツールをつくった。EUC-JP/Shift-JISも検索できマス。 · THINKING MEGANEダウンロードしたバイナリが動かなかったのでビルドしてみる とりあえず、GOPATH は適当。 % brew install go % export GOPATH=~/src…

Mavericksでphp5.2.17コンパイルエラー

make: *** [ext/dom/node.lo] Error 1libxml2まわりの不具合の模様 https://mail.gnome.org/archives/xml/2012-August/msg00028.html https://mail.gnome.org/archives/xml/2012-August/txtbgxGXAvz4N.txthttps://gist.github.com/oppara/8281560 % cd /path…