摘要:
Git如何永久删除文件(包括历史记录) 有些时候不小心上传了一些敏感文件(例如密码), 或者不想上传的文件(没及时或忘了加到.gitignore里的), 而且上传的文件又特别大的时候, 这将导致别人clone你的代码或下载zip包的时候也必须更新或下载这些无用的文件, 因此, 我们需要一个方法, 永 阅读全文
阅读排行榜
curl获得http响应码 302 和绑定host
2014-03-28 09:52 by cmsd, 2130 阅读, 收藏,
摘要:
shell curl 取得HTTP返回的状态码
curl -I -m 10 -o /dev/null -s -w %{http_code} www.baidu.com 阅读全文
pyOpenSSL0.13安装失败
2013-11-11 16:51 by cmsd, 1989 阅读, 收藏,
摘要:
/usr/lib64/python2.4/distutils/dist.py:236: UserWarning: Unknown distribution option: 'zip_safe' warnings.warn(msg)running build_extbuilding 'OpenSSL.SSL' extensiongcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --p 阅读全文
python urllib2 Basic认证
2013-10-11 18:06 by cmsd, 1930 阅读, 收藏,
摘要:
1.通过添加http header 来实现import urllib2from base64 import encodestringurl = 'http://202.108.1.51'user = 'a'passwd = 'aa' req = urllib2.Request(url)basestr = encodestring('%s:%s' % (user,passwd))[:-1]req.add_header('Authorization','Basic %s' % basestr)f = u 阅读全文
ks使用lvm分区,ks启动
2015-06-12 11:35 by cmsd, 1919 阅读, 收藏,
摘要:
part /boot -fstype ext3 -size=150 part swap -size=2048 part pv.01 -size=1 -growvolgroup vg_root pv.01logvol / -vgname=vg_root -size=10240 -name=lv... 阅读全文
浙公网安备 33010602011771号