摘要: 静态ip参考Ubuntu通过PPTP协议使用VPN动态ip直接使用network-manager 阅读全文
posted @ 2016-01-19 21:23 格通 阅读(44) 评论(0) 推荐(0) 编辑
摘要: cd yourdirectoryperl -e 'for(){((stat)[9]<(unlink))}'参考Efficiently delete large directory containing thousands of files 阅读全文
posted @ 2016-01-19 20:49 格通 阅读(238) 评论(0) 推荐(0) 编辑
摘要: find . -size 0 -name "*.log" -exec rm {} \; 阅读全文
posted @ 2016-01-19 20:48 格通 阅读(139) 评论(0) 推荐(0) 编辑
摘要: find . -type d -maxdepth 1 | grep "./" | sed 's/\.\///g' | sed 's/-[0-9].*$//' | sort -u 阅读全文
posted @ 2016-01-19 17:33 格通 阅读(221) 评论(0) 推荐(0) 编辑
摘要: yum install `yum deplist emacs | grep provider | awk -F: '{print $2}' | awk '{print $1}' | xargs`yum install libX11-devel libjpeg-turbo-devel libpng-d... 阅读全文
posted @ 2016-01-19 17:32 格通 阅读(324) 评论(0) 推荐(0) 编辑
摘要: grep -vxFf b.txt a.txt > newa.txt更好的方法是comm -1 -3 b.txt a.txt > newa.txt来自Tool in unix to subtract text files? [duplicate] 阅读全文
posted @ 2016-01-19 16:40 格通 阅读(252) 评论(0) 推荐(0) 编辑
摘要: linux:svn propset svn:executable on *svn commit -m "add executable property" 阅读全文
posted @ 2016-01-19 16:23 格通 阅读(226) 评论(0) 推荐(0) 编辑
摘要: $emacs在emacs查看里面,输入:C-u 0 M-x byte-recompile-directory然后输入~/.emacs.d即可。 阅读全文
posted @ 2016-01-19 14:14 格通 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 在同一个生产环境中,多语言配合开发是常态,暂时发现几个不同方法。1. 共享数据库。数据库是瓶颈,如果有其中一个锁住了数据库,其他的所有的都会崩溃。2.使用thrift多语言RPC调用。3.使用rabbitmq等消息队列。 阅读全文
posted @ 2016-01-19 13:16 格通 阅读(283) 评论(0) 推荐(0) 编辑
摘要: $erl -name a@localhost -setcookie abc -remsh b@localhost1>fprof:trace([start, {file, "/home/getong/first.trace"}, verbose, {procs,all}]).2>fprof:trac... 阅读全文
posted @ 2016-01-19 13:12 格通 阅读(303) 评论(0) 推荐(0) 编辑