Skip to content

Instantly share code, notes, and snippets.

View tomoyukiinoue's full-sized avatar

Tomoyuki INOUE tomoyukiinoue

  • Beartail
  • Japan, Tokyo, Shinagawa
View GitHub Profile
@tomoyukiinoue
tomoyukiinoue / 00_prepare
Created October 14, 2012 04:08
Install Rails 3.2.8 for Mac OS X Mountain Lion (10.8.2)
1. Install Xcode 4.5.1 from AppStore.
1. Install Command Line Tools via Xcode preferences.
@tomoyukiinoue
tomoyukiinoue / gist:7968556
Created December 15, 2013 03:37
Rails4 で気合を入れるプラグイン acts_as_kiai を作ってみた

Rails4 で気合を入れるプラグイン acts_as_kiai を作ってみた

Rails4でActivityRecordを拡張し、気合を入れてくれるプラグイン acts_as_kiai を開発したのでその時のメモです。

基本的な流れ

  1. 仕様を決める
  2. 開発を始める
  3. コアを書く
@tomoyukiinoue
tomoyukiinoue / gist:7851789
Created December 8, 2013 00:26
Mac OS X 10.9 のRails 4.0.0を4.0.2にアップデートしたときのメモ

Mac OS X 10.9 のRails 4.0.0を4.0.2にアップデートしたときのメモ

現在のバージョンをチェック

$ rails --version
Rails 4.0.0
$ rake --version
rake, version 10.1.0

$ gem --version

@tomoyukiinoue
tomoyukiinoue / gist:7581360
Created November 21, 2013 13:13
Uninstall GUI from CentOS 6.4 by yum command
# yum groupremove "X Window System" "Desktop"
@tomoyukiinoue
tomoyukiinoue / setup_rails4_ruby2
Created July 1, 2013 13:29
Setup Rails 4.0 + Ruby 2.0 to Mac OS X 10.8
$ brew upgrade rbenv
$ rbenv -v
rbenv 0.4.0
$ brew upgrade ruby-build
$ ruby-build --version
ruby-build 20130628
$ rbenv install --list | grep 2.0.0-p
2.0.0-p0
2.0.0-p195
2.0.0-p247
@tomoyukiinoue
tomoyukiinoue / gist:4704680
Created February 4, 2013 02:19
VirtualBoxの可変ストレージの容量を拡張する
$ VBoxManage modifyhd <VDIのパス> --resize 60000
(新しいサイズはMBで指定)
@tomoyukiinoue
tomoyukiinoue / gist:4507960
Last active December 10, 2015 23:18
Rails 3.2.11へのアップデート方法メモ(緊急)
$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.2.0]
$ gem -v
1.8.23
$ rails -v
Rails 3.2.8
$ gem update --system
$ gem -v
1.8.24
$ gem update rails
@tomoyukiinoue
tomoyukiinoue / build-django-docs-ja
Created December 16, 2012 08:50
Django 1.4の日本語ドキュメントをビルドする
# Install sphinx by easy_install
$ sudo easy_install sphinx
# Clone django-docs-ja from github
$ git clone git://github.com/django-docs-ja/django-docs-ja.git
$ cd django-docs-ja
$ make html
$ open _build/html/index.html
@tomoyukiinoue
tomoyukiinoue / gist:4304007
Created December 16, 2012 07:27
Install Python and Django for Mac OS X 10.8
# Install Python 2.7.3 via Homebrew
$ brew install python
$ echo 'export PATH=/usr/local/bin:$PATH' >> ~/.bash_profile
$ source ~/.bash_profile
$ python --version
Python 2.7.3
# Install Django 1.4.3 by easy_install
$ sudo easy_install django
$ sudo easy_install virtualenv
@tomoyukiinoue
tomoyukiinoue / gist:4173349
Created November 30, 2012 02:14
How to pass inputing the username and password when you push to the repository using https from mac os x.
$ git clone git://github.com/gitster/git
$ cd git/contrib/credential/osxkeychain
$ make
$ sudo cp git-credential-osxkeychain /usr/local/bin/git-credential-osxkeychain
$ sudo chmod 755 /usr/local/bin/git-credential-osxkeychain
$ sudo git config --global credential.helper osxkeychain