代码改变世界

阅读排行榜

python加密模块学习

2013-09-11 11:15 by cmsd, 639 阅读, 收藏,
摘要: 1. md5模块 md5.new([arg]) 返回一个md5对象,如果给出参数,则相当于调用了update(arg) md5.update(arg) 用string参数arg更新md5对象 md5.digest() 返回16字节的摘要,由传给update的string生成,摘要没有ascii字符 md5.hexdigest() 以16进制的形式返回摘要import md5a = md5.new('passwd')a.digest() 'v\xa2\x17;\xe692T\xe7/\xfaMm\xf1\x03\n'a.hexdigest() '76a21 阅读全文

centos 安装pptp

2016-10-08 16:23 by cmsd, 635 阅读, 收藏,
摘要: 1. 安装依赖 ppp yum -y install ppp 2. 编译安装pptpd wget http://jaist.dl.sourceforge.net/project/poptop/pptpd/pptpd-1.2.3/pptpd-1.2.3.tar.gz tar xvf pptpd-1.2 阅读全文

误卸载python2.4导致yum不能用后的修复

2014-03-04 22:55 by cmsd, 634 阅读, 收藏,
摘要: 去http://mirrors.ustc.edu.cn/centos/或者镜像下载如下包,版本不一定非常一致python-2.4.3-56.el5.x86_64.rpmpython-devel-2.4.3-56.el5.i386.rpmpython-devel-2.4.3-56.el5.x86_64.rpmpython-iniparse-0.2.3-6.el5.noarch.rpmpython-libs-2.4.3-56.el5.x86_64.rpmpython-pycurl-7.15.5.1-8.el5.x86_64.rpmpython-setuptools-0.6c5-2.el5.noar 阅读全文

git ignore不生效删除缓冲

2015-11-16 23:32 by cmsd, 632 阅读, 收藏,
摘要: 在git中如果想忽略掉某个文件,不让这个文件提交到版本库中,可以使用修改根目录中 .gitignore 文件的方法(如无,则需自己手工建立此文件)。这个文件每一行保存了一个匹配的规则例如:1234567# 此为注释 – 将被 Git 忽略*.a # 忽略所有 .a 结尾的文件!lib.a # 但 l... 阅读全文

mac 升级vim

2016-04-03 16:05 by cmsd, 615 阅读, 收藏,
摘要: 首先,要下载vim的源代码。Vim source archives : vim online,下载7.4的新建一个目录用于安装vim 7.4:sudo mkdir /usr/local进入源代码的src目录中,执行:./configure --with-features=huge --enable- 阅读全文
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 26 下一页