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

rails勉強用のリンク一覧

http://dotinstall.com/lessons/basic_haml http://dotinstall.com/lessons/basic_rails_v2 http://dotinstall.com/lessons/basic_activerecord http://dotinstall.com/lessons/basic_ruby_v2

git変更は敢えて変更無視

================================================================= git変更は敢えて変更無視するように変更する ================================================================= # assume-unchangedに追加 git update-index --assume-unchanged [フ…

xprofのインストールメモ

xhprof 参考 http://qiita.com/w_cota/items/48667a845cd06d969d4a vi newrelic.ini [xhprof] extension=xhprof.so xhprof.output_dir=“/var/log/xhprof/” mongo // mongo php install http://qiita.com/nownabe/items/123a8fd04ff5252b3036 sudo service mo…

centos6.2 -> centos7 バージョンアップ

### 念のため、chkconfig --listを取っておきましょう! $ yum update -y $ reboot $ vim /etc/yum.repos.d/CentOS-Base.repo ### 下記を追加 [upg] name=CentOS-$releasever - Upgrade Tool baseurl=http://dev.centos.org/centos/6/upg/x86_64/ gpgcheck=1…

Ruby製のカピバラさん

▼個別のファイル実行するには↓ bundle exec rspec xxx/xxx.rb ▼デバックする場合、binding.pryで入れる inquire ‘pry’ 対象の行にbinding.pryを入れる ・画面を開く visit '/' ・現在のパス current_path ・リンクをクリック page.find(:xpath, '/html/body/…

dotinstall.com

ちょっと触れてみる(やり方は自由ですが,DotInstall だとスキマ時間でできるのでオススメです) http://dotinstall.com/lessons/basic_haml http://dotinstall.com/lessons/basic_rails_v2 http://dotinstall.com/lessons/basic_activerecord http://dotin…

Gitで既にmasterにマージされている使用済みブランチを消す方法

qiita.com

rabbitmq構築手順@centos

cd /usr/local/src/ ダウンロード wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.5/rabbitmq-server-3.6.5-1.noarch.rpm インストール rpm –nodeps -Uvh rabbitmq-server-3.6.5-1.noarch.rpm サービス起動 service rabbitmq-server start chk…

chef cookbooksを作ってみる

rbenvを使う、.zshrcファイルに以下の内容を追記 $ export PATH=“$HOME/.rbenv/bin:$PATH” $ eval “$(rbenv init -)” bundler $ gem install bundler Gemfile作成 $ vim Gemfile source 'https://rubygems.org' gem 'chef', '~> 12.18', '>= 12.18.31' gem '…

macでrbenv環境を構築

brewでrbenvをインストール brew install rbenv リスト一覧 rbenv install –list aws/opsworks-cookbooksを使うには2.0.0-p481が必要 rbenv install c global ruby version設定 rbenv global 2.0.0-p481 redash rbenv redash 確認 rbenv versions