$ brew update
/usr/local/Library/brew.sh: line 32: /usr/local/Library/ENV/scm/git: No such file or directory
brew prune を使う。
$ brew prune
| defaults -currentHost write -globalDomain AppleFontSmoothing -int 2 |
| source 'https://rubygems.org' | |
| gem 'rack' |
| wget http://downloads.mongodb.org/osx/mongodb-osx-x86_64-2.4.14.tgz | |
| tar zxvf mongodb-osx-x86_64-2.4.14.tgz | |
| mv mongodb-osx-x86_64-2.4.14 /opt/mongodb | |
| cd /usr/lobal/bin | |
| ln -s /opt/mongodb/bin/bsondump bsondump | |
| ln -s /opt/mongodb/bin/mongo mongo | |
| ln -s /opt/mongodb/bin/mongod mongod | |
| ln -s /opt/mongodb/bin/mongodump mongodump | |
| ln -s /opt/mongodb/bin/mongoexport mongoexport |
rspecの実行が遅いテストをリストアップする
rspec --profile [count] spec/
# specの実行がおそいテスト100件を抽出
rspec --profile 100 spec/
| # カレントディレクトリの配下のファイル一覧をサブディレクトリも含めテキストに出力する | |
| $ Get-ChildItem -Recurse | Out-file -filepath out.txt -width 999 |