相信很多个人站长都希望通过https向读者提供服务, 要提供https服务, 就首先需要一个通过CA认证的certificate, 可以掏钱买, 也可以通过Let’s Encrypt免费获得. 如果站点用的是github pages静态内容 + 自己的域名, 那么可能这两者可能都不合适.
CloudFlare是一家DNS, CDN等服务供应商, 同时面向个人提供免费的DNS, CDN等服务, 并且提供SSL服务:
如果要求不高, 只是希望内容通过https分发, 那么可以选择默认的Flexible SSL. 该选项会使最终读者通过https建立与CloudFlare之间的联系. 而CloudFlare与你的server之间会通过http连接.
SSL配置生效后, 你将可以通过http访问你的网站, 并且可以看到https的认证信息.
原理
CloudFlare会自动生成一个包含有你的域名*.example.com的共享认证, 最终用户的浏览器会辨识该认证并与CouldFlare建立https连接.
# mkfs.ext4 /dev/sda1
# mkdir -p /media/AiDisk_a1/opt # mount -o bind /media/AiDisk_a1/opt/ /opt/ # mkdir -p /opt/tmp/ipkg # ipkg.sh update
# ipkg.sh install ipkg-opt
ipkg install python27
Useful links:
ASUS RT-N56U or hardware NAT acceleration
Error Message:
Unpacking ipkg-opt...tar: can't create symlink from ./opt/bin/ipkg-opt to ipkg: Operation not permitted tar: can't create symlink from ./opt/lib/libipkg.so to libipkg.so.0.0.0: Operation not permitted tar: can't create symlink from ./opt/lib/libipkg.so.0 to libipkg.so.0.0.0: Operation not permitted Done. Configuring ipkg-opt...Done.
Make sure that your usb drive is not ‘vfat’
the default firmware doesn’t provide the SSH feature, however, with the help of padavan‘s rt-n56u project, you may enable it:
This project aims to improve the rt-n56u and other supported devices on the software part, allowing power user to take full control over their hardware. This project was created in hope to be useful, but comes without warranty or support. Installing it will probably void your warranty. Contributors of this project are not responsible for what happens next.
How do I get set up?
- Get the tools to build the system or Download pre-built system image
- Feed the device with the system image file (Follow instructions of updating your current system)
- Perform factory reset
- Open web browser on http://my.router to configure the services
What I did:
我相信多数人看到这本书之后可能都会轻轻一笑,这太简单了。可对我来说,大多数概念都已经变的很陌生, 粗略读了一遍,顺便复习曾经熟悉的那些数学基础。
零,二进制,十进制,指数
余数, 周期性, 分组
排列组合
三种药品,A, B, C 共取100粒,每种至少一粒,不考虑顺序,共有多少种组合方式?
递归
指数
Issue: There’s an AssertionError when I try to test mutliprocessing features using lettuce 0.2.22 / nosetests and python 2.7.10 error details:
multiprocessing\forking.py AssertionError: main File "", line 1, in File "C:\Python27\Lib\multiprocessing\forking.py", line 380, in main prepare(preparation_data) File "C:\Python27\Lib\multiprocessing\forking.py", line 488, in prepare assert main_name not in sys.modules, main_name AssertionError: __main__
upgrade to python 2.7.11 becuase this is a fixed bug: https://bugs.python.org/issue10128; or
use a wrapper (.py file name should be not in sys.modules, main_name):
# run_at.py: __requires__ = 'lettuce==0.2.20' import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.exit( load_entry_point('lettuce==0.2.20', 'console_scripts', 'lettuce')() )
// Proudly powered by Apache, PHP, MySQL, WordPress, Bootstrap, etc,.