Skip to content

Instantly share code, notes, and snippets.

View 328's full-sized avatar

328 328

View GitHub Profile
@328
328 / virt-install.sh
Created December 22, 2014 07:11
virt-install.sh
#!/bin/sh
virt-install \
--name ubuntu14-test-template \
--vcpus 2 \
--ram 1024 \
--hvm \
--virt-type kvm \
--os-type=linux \
--os-variant ubuntusaucy \
--network bridge=br0 \
@328
328 / rails-column
Last active August 29, 2015 14:10
rails カラムの追加
```
rails g migration AddカラムToテーブル カラム:型
```
AddカラムToテーブルのカラムとテーブルの頭文字は大文字じゃないとダメなので注意
なぜかmasterブランチでやらないとコケる
@328
328 / update-alternatives
Created November 29, 2014 00:38
エディタ設定の変更. nanoエディタからviに変更できます
sudo update-alternatives --config editor