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 more

New 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 more

Use 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

Pip 无网络环境安装包

2015-10-20 22-28-48 by Kamushin

在内网环境部署 Python 包, 抽取依赖

read more

用正则来解决grep时行过长的问题

2015-10-19 21-37-24 by Kamushin

grep输出内容过长,行过长

read more