Hatena::ブログ(Diary)

呆備録

内容無保証
G
category
 

2014-07-17

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)

以下でOK

% bundle exec knife solo cook vagrant --no-berkshelf

2014-06-01

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 '{print $3}'
5.4.29
$ yum --enablerepo=remi-php55 info php | grep Version | awk '{print $3}'
5.5.13

2014-05-18

シェルで拡張子変更

markdownmd に変更してみる

% for i in *.markdown; do mv $i ${i%markdown}md; done

2014-05-15

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:syntastic_enable_perl_checker = 1
let g:syntastic_perl_checkers = ['perl', 'podchecker']

うちの環境では、g:syntastic_perl_checkersも設定しないと動かんかった

落ち穂拾い

デバッグ用設定

let g:syntastic_debug = 1

checkerの確認

:SyntasticInfo perl

2014-05-14

Alignta 空白で整列

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-remote blue default
color main-tracked blue default

color stat-none default default
color stat-staged green default
color stat-unstaged red default
color stat-untracked yellow default

after

color main-head      blue default bold
color main-tag       yellow default bold
color main-local-tag yellow default
color main-remote    blue default
color main-tracked   blue default

color stat-none      default default
color stat-staged    green default
color stat-unstaged  red default
color stat-untracked yellow default
 
gg
プロフィール

oppara

oppara

MacBook Air(Mid 2012) OS10.11.5

2006 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 |
2007 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 |
2008 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 |
2009 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 |
2010 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 |
2011 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 |
2012 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 |
2013 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 |
2014 | 01 | 02 | 03 | 04 | 05 | 06 | 07 |