2018年6月21日

p12证书分离

摘要: p12(或者pfx)文件里一般存放有CA的根证书,用户证书和用户的私钥 假设我们有一个test.p12文件 在安装了openssl的linux服务器上执行以下命令: 提取用户证书: openssl pkcs12 -in test.p12 -clcerts -nokeys -out cert.pem  阅读全文

posted @ 2018-06-21 14:43 东边日出西边雨一直下 阅读(258) 评论(0) 推荐(0) 编辑

svn仓库转为git仓库

摘要: 1 下载subgit [下载最合适版本subgit](http://www.subgit.com/download.html) 2 将svn仓库通过subgit变为git本地仓库 subgit import --non-interactive --default-domain yourdomain. 阅读全文

posted @ 2018-06-21 14:37 东边日出西边雨一直下 阅读(269) 评论(0) 推荐(0) 编辑

2017年4月27日

nginx log 敏感信息过滤

摘要: 有时我们会通过url传递一些敏感信息如token等,同时又不希望这些信息被记录在nginx的log(可能会分发给数据处理或解决bug的人)里。 这时需要过滤url.具体方法如下 阅读全文

posted @ 2017-04-27 15:57 东边日出西边雨一直下 阅读(951) 评论(0) 推荐(0) 编辑

2017年4月17日

Jupyter Notebook 作图显示中文

摘要: import matplotlib.pyplot as plt #中文字体显示 plt.rc('font', family='SimHei', size=13) 阅读全文

posted @ 2017-04-17 09:35 东边日出西边雨一直下 阅读(6009) 评论(0) 推荐(1) 编辑

2017年2月9日

wget 下载一个网站所有文件

摘要: wget -r -np -nH -e robots=off --cut-dirs=3 http://hostname/aaa/bbb/ccc/ddd/ 阅读全文

posted @ 2017-02-09 10:18 东边日出西边雨一直下 阅读(550) 评论(0) 推荐(0) 编辑

2017年1月6日

logstash file input sincedb path on osx

摘要: $LOGSTASH_HOME/data/plugins/inputs/file 阅读全文

posted @ 2017-01-06 10:25 东边日出西边雨一直下 阅读(244) 评论(0) 推荐(0) 编辑

2016年7月20日

OSX unable to write 'random state'

摘要: openssl ca -gencrl -config ./config/openssl.cnf -out ./CA/crl/cacrl.pem -passin pass:'password' unable to write 'random state' openssl执行某些命令时会读写一个种子文件 阅读全文

posted @ 2016-07-20 11:03 东边日出西边雨一直下 阅读(770) 评论(0) 推荐(0) 编辑

2016年4月22日

Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] No such file or directory'

摘要: 1、根本原因在http://askubuntu.com/questions/606732/php-fatal-error-uncaught-exception-pdoexception-with-message-sqlstatehy000有描述 2、导致上面问题的一个原因是osx系统升级会覆盖/us 阅读全文

posted @ 2016-04-22 10:59 东边日出西边雨一直下 阅读(3109) 评论(0) 推荐(0) 编辑

2015年7月23日

Nginx和Apache配置日志格式记录Cookie

摘要: 记录Cookie有什么用? 有时候我们需要通过web服务器的访问日志来统计UV(独立访客),并据此分析用户的行为。而UV是依据cookie数据得出的统计。UV相对于IP的好处是:IP是一个反映网络虚拟地址对象的概念,UV是一个反映实际使用者的概念,更加准确地对应一个实际的浏览者。使用UV作为统计量... 阅读全文

posted @ 2015-07-23 15:09 东边日出西边雨一直下 阅读(4075) 评论(0) 推荐(0) 编辑

导航