パラボラアンテナと星の日記

あることないこと

2014-02-01から1ヶ月間の記事一覧

DockerでhostOSが利用するport固定するやつ

DockerでhostOSが利用するport固定するやつ、 v0.6.3から使える http://docs.docker.io/en/latest/use/port_redirection/ # Bind TCP port 8080 of the container to TCP port 80 on all available interfaces of the host machine. docker run -p 80:8080 <image> <cmd></cmd></image>…

dockerで止まってるcontainer全部消す・使わないimage全部消す

docker、遊んでると失敗imageや使わないデーモンコンテナがガンガン作成されるので リセットしたいことが多い①動いてるcontainer全部止める docker stop `docker ps -q` ②止まってるcontainer全部消す docker ps -a | grep 'Exit' | awk '{print $1}' | xarg…

"RSpecによるRailsテスト入門"を読みました

"RSpecによるRailsテスト入門" https://leanpub.com/everydayrailsrspec-jp80%くらい目を通しました。 商用未経験の私が章ごとにメモ・感想・勝手な解釈を残します。第11章 テスト駆動開発に向けて TDDでの個人レベルでの開発手順の話。 新しい発見は無かっ…

Mac、キーバインドうんぬんというより

小さいカタカナ(ィとかャとか)打つの間違える

Rails Rspecな環境にGuard導入

Gemfile group :development, :test do gem 'guard-rspec' end で、 bundle exec guard init するとGuardfileができるRails4.1なのでSpringを使っているので、 Guardfileの5行目にspring: trueを追記 # A sample Guardfile # More info at https://github.c…

Gem Uninstall All

http://m.igrs.jp/blog/2011/12/21/gem-uninstall-all/を参考に。sudo gem uninstall -axI `gem list --no-versions | grep -v (sqlite|libxml) `