- ブラウザからアクセス
http://localhost:3000/rails/info/routes
- コマンドプロンプトからアクセス
$ rake routes
ruby -run -e httpd . -p 8080 |
http://localhost:3000/rails/info/routes
$ rake routes
$ df -h
ファイルシス サイズ 使用 残り 使用% マウント位置
/dev/xvda1 7.8G 6.9G 809M 90% /
devtmpfs 995M 56K 995M 1% /dev
tmpfs 1003M 0 1003M 0% /dev/shm
$ cat /proc/swaps
Filename Type Size Used Priority
/swap.img
$ free -mt
Mac OS Xでは、/Applications/Vagrantディレクトリと/usr/bin/vagrantファイルを削除します。
$ rm -rf /Application/Vagrant
$ sudo rm -rf /usr/bin/vagrant
OSX
$ sudo rm -rf /opt/chefdk
$ sudo pkgutil --forget com.getchef.pkg.chefdk
$ find /usr/bin -lname '/opt/chefdk/*' -delete
文字コードを確認する
mysql> show variables like "char%";
データベースの文字コードを変更する
mysql> ALTER TABLE ****(テーブル名) CONVERT TO CHARACTER SET utf8;
gem install chefspec --no-ri --no-rdoc
$ knife cookbook create emacs-env -o .
$ cd emacs-env
$ berks init
$ rm Vagrant
$ vagrant init ubuntu/trusty64
$ vagrant up
$ vagrant ssh-config --host emacs-env >> ~/.ssh/config
$ knife solo prepare emacs-env --bootstrap-version 11.10.4
$ knife solo cook emacs-env
Emacsのデーモン化
$ emacs --daemon
$ emacslient -nw
$ emacsclient -e '(kill-emacs)'
alias e="emacsclient -nw"
class InstanceCountClass | |
@@instance_count = 0 | |
def self.instance_count | |
@@instance_count | |
end | |
def initialize | |
@@instance_count += 1 | |
end |