Code
ssl certificate 配置记录
现在的世界满是https,若想和外部相处,我们也常常需要使用到https的页面.安全越来越被人重视,而成本并不是很高,配置一个SSL自然是理所应当的.
这次使用的是从 namecheap 上购买的 comodo 提供的 positivessl wildcard产品,价格有点肉痛,实际上大概花了RMB600的样子.
有些细节和以前alphassl搞到的证书不太一样,所以稍稍记录下,以便以后查询. (more…)
Life
Transfer a domain from GoDaddy to Namecheap
Recently, Godaddy changed there policy and supply less and less promo codes, I shall pay about $15/yr for my .com domain if I have no promo code. On the opposite side, NameCheap, it always require about $10 every year for a dot com domain, additionally, it gives a 20% discount promo code recently.
There are a giant number of posts talking about godaddy Vs. namecheap, e.g. this and this. With some thinking, I decide to use namecheap instead of godaddy. (more…)
Code
做了个 wrapper, 聊聊开源协议
开源还是闭源?这是个大问题.辛辛苦苦撸出来的代码,怎么用它自然你说了算.出于各人的喜好,大家尽可以选择一个合适的分享或者不分享的方式. 个人觉得这无关道德.
但是, 若是别人用 GPL License 分享了代码,而你却擅自修改 License, 把你的代码设置为闭源, 这就不仅是不道德的问题了, 理论上说, 你已经违反了你和原作者的协议, 是违法的. (more…)
Code
删掉 macOS 的 app 的启动项
之前在脑残安装了一个很胃痛的 app,很快感觉很不好用,直接丢垃圾箱居然还失败,于是直接 sudo 然后把这个 app 强行删掉了。然后手动解析 pkg 一个一个删文件。teamviewer,对,说的就是这位。
过了几天检查系统 log 的时候,发现系统 log 还在报 teamviewer 启动失败什么的。这才记起来忘了删 launchctl 的启动项了。 (more…)