Skip to content

Instantly share code, notes, and snippets.

View usutani's full-sized avatar

Yasuhiro Usutani usutani

  • Kobe, Hyogo, Japan
View GitHub Profile
@usutani
usutani / ubuntu_oracle-xe-11.2.md
Last active August 29, 2015 13:58
Ubuntu 12.04 に Oracle Database XE をインストール
@usutani
usutani / osx_oracle_client.md
Created April 9, 2014 06:32
OS X Mavericks に Oracle Client をインストール
@usutani
usutani / rails4_oracle_enhanced.md
Last active August 29, 2015 13:58
Rails4 で Oracle に接続する
@usutani
usutani / centos64_oracle-xe-11.2.md
Created April 10, 2014 01:15
CentOS 6.4 に Oracle Database XE をインストール
  • OS X 10.9.2
  • Vagrant 1.5.2
  • CentOS 6.4 64bit
  • Oracle Database XE 11.2
@usutani
usutani / ubuntu_sftp.md
Last active August 29, 2015 13:59
chrootの設定を有効にしたSFTPサーバ
@usutani
usutani / centos_nginx_unicorn_oracle.md
Last active August 29, 2015 13:59
CentOS + Nginx + Unicorn + Oracle XE + Railsの設定
# config/routes.rb
resources :documents do
scope module: 'documents' do
resources :versions do
post :restore, on: :member
end
resource :lock
end
end
bcx david$ rake stats
+----------------------+-------+-------+---------+---------+-----+-------+
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Controllers | 3704 | 2942 | 72 | 479 | 6 | 4 |
| Helpers | 1901 | 1529 | 13 | 261 | 20 | 3 |
| Models | 5310 | 4116 | 50 | 653 | 13 | 4 |
| Libraries | 2167 | 1593 | 51 | 200 | 3 | 5 |
| Integration tests | 297 | 217 | 6 | 1 | 0 | 215 |
| Functional tests | 3897 | 3065 | 61 | 11 | 0 | 276 |

Docker 虎の巻

何故Dockerを使うべきか

Why Should I Care (For Developers)

"Dockerが面白いのはシンプルな環境に隔離性と再現性をもたらしてくれることだ.ランタイムの環境を一度作れば、パッケージにして別のマシンでも再利用することできる.さらに,すべてはホスト内の隔離された環境で行われる(VMのように).最も素晴らしい点は,シンプルかつ高速であることだ."

git config --global color.ui auto
git config --global core.editor vim
git config --global alias.st status
git config --global alias.br branch
git config --global alias.co checkout
git config --global alias.ci commit
git config --global alias.l 'log --color --graph --pretty=oneline --decorate --date=short --abbrev-commit --branches'
git config --global alias.ds 'diff --stat'