Skip to content

Instantly share code, notes, and snippets.

Jeremy HU huxingyi

Block or report user

Report or block huxingyi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@huxingyi
huxingyi / test_ssl_server.c
Last active Jul 26, 2017
从godaddy买ssl证书最后测试https服务器成功。
View test_ssl_server.c
/*
Godaddy买ssl证书,godaddy说买的时候填优惠码可以有35%的折扣,我的优惠码 WOWjiqiyu 据说我可以得到$10的积分,还没试过。
使用我的优惠码购买链接:
http://www.godaddy.com/ssl/ssl-certificates.aspx?ics=WOWjiqiyu
不使用直接去:
http://www.godaddy.com/ssl/ssl-certificates.aspx
参考资料:
@huxingyi
huxingyi / auto_hosts.bat
Last active Dec 15, 2015
自动更新hosts,防ip被屏蔽,如果网络不通,会不断下载(间隔5秒左右),下载完成后,会对比hosts是否已修改(主要是为了使用SSD硬盘的考虑),如果已修改则更新到hosts。可以设为开机启动。
View auto_hosts.bat
@set hosts_path=%systemroot%\System32\drivers\etc\hosts
@set tmp_path=new_hosts
@set hosts_url=https://smarthosts.googlecode.com/svn/trunk/hosts
@:retry
@wget "%hosts_url%" --no-check-certificate -O "%tmp_path%"
@if %errorlevel%==0 goto update
@ping 127.0.0.1 -n 5 -w 1000 > nul
@goto retry
@:update
You can’t perform that action at this time.