octopress導入 http://blog.glidenote.com/blog/2011/11/07/install-octopress-on-github/
h2. clone
cd ~
git clone git://github.com/imathis/octopress.git octopress
cd octopress
git checkout -b master
find ./ -type f -exec md5sum {} \; > /tmp/checksums.md5 | |
md5sum -c /tmp/checksums.md5 |
octopress導入 http://blog.glidenote.com/blog/2011/11/07/install-octopress-on-github/
h2. clone
cd ~
git clone git://github.com/imathis/octopress.git octopress
cd octopress
git checkout -b master
#!/bin/bash | |
while getopts "i:h:n" opts | |
do | |
case $opts in | |
i) _MASTER_HOST=$OPTARG ;; | |
h) _MASTER_HOSTNAME=$OPTARG ;; | |
n) _DRYRUN="TRUE" ;; | |
esac | |
done |
#!/bin/bash | |
schema_name="hoge" | |
for x in `mysql -N -u user -ppass -e "select TABLE_SCHEMA || '@' || TABLE_NAME from information_schema.tables where TABLE_SCHEMA = '${schema_name}';"`; | |
do | |
table_name=`echo ${x} | cut -d@ -f2`; | |
mysqldump -t -u user -ppass -w"last_update >= '2013-05-01 00:00:00'" --add-drop-table=false --insert-ignore ${_schema_name} ${_table_name} > ${_table_name}.sql | |
done |
cookbook 'mysql', | |
:git => 'https://github.com/9minutesnooze/mysql.git', | |
:ref => 'mysql56' | |
10のクライアントから各10000回のクエリ発行を5セット
read
mysqlslap -u root -p --engine=innodb --auto-generate-sql --auto-generate-sql-load-type=read --auto-generate-sql-add-autoincrement --number-char-cols=3 --number-int-cols=5 --number-of-queries=10000 --concurrency=10 --iterations=5
write
mysqlslap -u root -p --engine=innodb --auto-generate-sql --auto-generate-sql-load-type=write --auto-generate-sql-add-autoincrement --number-char-cols=3 --number-int-cols=5 --number-of-queries=10000 --concurrency=10 --iterations=5
def stock | |
return redirect_to '/404.html' unless request.xhr? | |
@list = List.find(params[:id]) | |
if @list.is_stocked? | |
@list.is_stocked = false | |
else | |
@list.is_stocked = true | |
end |