2017-01-16 15-42-57
by Kamushin
1 2 3 4 5 6 7 | #!/bin/bash
mem (){
echo "********************"
date
COLUMNS=9999 top -n1 -c -b | head -n7 | sed '1,6d' && COLUMNS=9999 top -n1 -c -b | sed '1,6d' | grep $1;
ps aux | grep $1 | grep -v grep | awk -F " " '{ sum += $6 } END { printf "Total Memory Usage: %.1f MB\n", sum/1024 }'
}
|
推荐一个更好的Python 环境和包管理工具 canda
2016-08-01 09-47-40
by Kamushin
conda -- 一个更好的Python 环境和包管理工具
read moreNew fxg for me
2015-12-09 09-39-29
by Kamushin
find then grep has a insufferable performace, and I use ag to instead.
read moreUse webpack together with browser-sync
2015-10-28 16-56-48
by Kamushin
Webpack is a module bundler. Browsersync makes your browser testing workflow faster by synchronising URLs, interactions and code changes across multiple devices.
read more