摘要: 在你亲爱的.bashrc/.zshrc中添加###C###go_libs="-lm"go_flags="-g -Wall -include allheads.h -O3"alias go_c="c99 -xc '-' $go_libs $go_flags"然后再/usr/include目录下新建一个... 阅读全文
posted @ 2014-07-16 22:58 yantze 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 问题:运行gsl(GNU scientific Library)的函数库,用gcc erf.c -I/usr/local/include -L/usr/local/lib64 -L/usr/local/lib -g -Wall --std=gnu99 -lgsl -lgslcblas -o m.o编... 阅读全文
posted @ 2014-07-16 17:23 yantze 阅读(6185) 评论(0) 推荐(0) 编辑
摘要: PANTS=yantze env | grep PANTS 阅读全文
posted @ 2014-07-16 14:57 yantze 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 写了长长长一篇文章,结果把标签关了,这篇文章就不见了,草稿箱也没有!!!只好直接copy原来作者的文章了下载地址openwrt imagetulip driver引用Want to add a openwrt machine in hyper-v for testing? Sadly, the op... 阅读全文
posted @ 2014-07-05 13:31 yantze 阅读(2646) 评论(3) 推荐(0) 编辑
摘要: env:centos 6.5 x64 hyper-v虚拟机这个方法可以在当前运行的系统中扩展root磁盘详细步骤之前想创建的一个虚拟机的磁盘空间不够用了,所以想扩容一下磁盘。正好使用的时候是lvm磁盘,可以支持扩容。格式化一个新的分区或者磁盘Command (m for help): n ## ne... 阅读全文
posted @ 2014-07-05 11:54 yantze 阅读(473) 评论(0) 推荐(0) 编辑
摘要: docker 基本的使用命令docker pull centos:latestdocker images centosdocker run -i -t centos /bin/bash //也可以使用docker run -it centos /bin/bashdocker ps -a //列出所有... 阅读全文
posted @ 2014-07-05 11:19 yantze 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 在centos6.5 x64 vim6.2需要在tmux.conf中添加set -g default-terminal "screen-256color"然后再次启动tmux的时候用tmux -2就可以了-2 Force tmux to assume the terminal supports 25... 阅读全文
posted @ 2014-06-17 14:21 yantze 阅读(645) 评论(0) 推荐(0) 编辑
摘要: linux centos 下代理http、https、ftp、all_proxy全局使用代理: export http_proxy=http://host:port/ export https_proxy=$http_proxy export ftp_proxy=$http_proxy export... 阅读全文
posted @ 2014-05-22 11:50 yantze 阅读(1708) 评论(0) 推荐(0) 编辑
摘要: 无意翻到一本新书《CouchDB权威指南》发现这就是传说中的NoSQL,看排第一的是mangodb,redis有些人说是,有些人说不是。CouchDB的开发很天才,直接可以通过javascript来操作数据库。这本书讲得很详细,附上这本书的英文电子版本:在线阅读这个数据库算是一个现代化的软件,里面各... 阅读全文
posted @ 2014-05-05 15:14 yantze 阅读(814) 评论(0) 推荐(0) 编辑
摘要: 以下所有操作都是在windows下面用putty连接linux centos6的情景下。一直很纳闷为什么在tmux模式下不能把复制到的文字放到系统的粘贴板里面呢?通过层层阻碍,终于找到了原因。去掉 ~/.tmux.conf中#设置鼠标可用#setw -g mode-mouse on如果你在最开始的时... 阅读全文
posted @ 2014-05-03 10:27 yantze 阅读(5474) 评论(0) 推荐(0) 编辑