Add db.warmup.
This commit is contained in:
4
.bashrc
4
.bashrc
@@ -29,6 +29,10 @@ alias smic="sudo env -i PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/
|
||||
alias ssh="ssh -C -e none -v"
|
||||
alias t="telnet"
|
||||
#
|
||||
function db.warmup() {
|
||||
pt-find --charset=utf8 --print -h $1 | xargs -t -P8 -I% -n1 sh -c "echo 'SELECT COUNT(*) FROM %;' | mysql -h $1 > /dev/null"
|
||||
}
|
||||
#
|
||||
export BLOCKSIZE="k"
|
||||
export EDITOR="vim"
|
||||
export GIT_PAGER="less"
|
||||
|
||||
4
.zshrc
4
.zshrc
@@ -27,6 +27,10 @@ alias "smic=sudo make install clean"
|
||||
alias "ssh=ssh -C -e none -v"
|
||||
alias "t=telnet"
|
||||
#
|
||||
db.warmup() {
|
||||
pt-find --charset=utf8 --print -h $1 | xargs -t -P8 -I% -n1 sh -c "echo 'SELECT COUNT(*) FROM %;' | mysql -h $1 > /dev/null"
|
||||
}
|
||||
#
|
||||
if [[ -x /usr/bin/xdg-open ]]; then
|
||||
alias "o=xdg-open"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user