$ cat ~/.bash_history | grep-e"^g " | awk '{ print $1, $2 }' | sort | uniq -c | sort-r42 g n
41 g co
28 g push
17 g ci
17 g br
15 g di
10 g fm
7 g ca
6 g sy
Migrating to TableRenaemStatusToProfile (20140126044757)
(25.6ms) RENAME TABLE `user_statuses` TO `user_profiles`
(13.4ms) CREATE UNIQUE INDEX `index_user_profiles_on_user_id` ON `user_profiles` (`user_id`)
(8.7ms) DROP INDEX `index_user_statuses_on_user_id` ON `user_profiles`
Mysql2::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INDEX `index_user_statuses_on_user_id` TO `index_user_profiles_on_user_id`' at line 1: ALTER TABLE `user_profiles` RENAME INDEX `index_user_statuses_on_user_id` TO `index_user_profiles_on_user_id`
$ docker run -i-t drecom/ubuntu-ruby bash
root@8c92dcb22de8:/# dpkg -l | grep mysql
ii libmysqlclient-dev 5.7.12-0ubuntu1 amd64 MySQL database development files
ii libmysqlclient20:amd64 5.7.12-0ubuntu1 amd64 MySQL database client library
ii libqt4-sql-mysql:amd64 4:4.8.7+dfsg-5ubuntu2 amd64 Qt 4 MySQL database driver
ii mysql-client 5.7.12-0ubuntu1 all MySQL database client (metapackage depending on the latest version)
ii mysql-client-5.7 5.7.12-0ubuntu1 amd64 MySQL database client binaries
ii mysql-client-core-5.7 5.7.12-0ubuntu1 amd64 MySQL database core client binaries
ii mysql-common 5.7.12-0ubuntu1 all MySQL database common files, e.g. /etc/mysql/my.cnf
consul: # install consul version (required)version:"0.6.4" # download zip platform (default: "linux_amd64")platform:"linux_amd64" # path to downloaded zip file (default: "/usr/local/src")src_dir:"/usr/local/src" # path to consul executable file (default: "/usr/local/src")bin_dir:"/usr/local/bin" # consul agent -data-dir option (default: "/tmp/consul")data_dir:"/tmp/consul" # consul agent other options (default: none)options:"-server -bootstrap-expect 1"gomaxprocs:2
メリット
serviceにしておくとitamaeやserverspecで
# consul.rb
service "consul"do
action [:enable, :start]
end
# consul_spec.rb
describe service("consul") do
it { should be_enabled }
it { should be_running }
end