发了CNVD,来来回回让我修改也不知道到底想让我写什么。估计他们也不在意,直接公开了。
交叉编译openresty,修复支持大文件 (LFS)
老文存档,有时间补全
http://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html
http://cgit.openembedded.org/meta-openembedded/tree/meta-webserver/recipes-httpd/nginx/files/nginx-cross.patch
https://stackoverflow.com/questions/4357570/use-file-offset64-vs-file-offset-bits-64
https://digital-domain.net/largefiles.html
https://stackoverflow.com/questions/35575749/how-to-define-file-offset-bits-large-files-macro-for-solaris-and-hp-aix
http://users.suse.com/~aj/linux_lfs.html
SIM800L EVB x 树莓派
从Aliexpress上剁了一个SIM800L模块,长这样:
VDD接TTL参考电平,需要串口输出5v(比如51)就接5v,需要输出3.3v(比如树莓派)就接3.3v。
要注意的是TTL需要交叉连接,即这个PCB板上的TxD和RxD应该分别接树莓派上的RxD和TxD。
浪费了我一晚上的青春。
cloudflare-partner-cli: using CNAME on cloudflare
This is a CLI program that let you set CNAME to use Cloudflare using the partner program.
Both Python2.x and Python3.x is supported. No extra library is needed.
To use Chinese menu, set environment variable LANG
to use UTF-8 (for example, zh_CN.UTF-8).
Usage
- Apply for partner program at https://www.cloudflare.com/partners/.
- Clone this repository or download script.
- Run
python ./cloudflare-partner-cli.py
. - Enter your
host_key
. You can get it here. - Enter the account you use to manage domains (your personal account, not partner login account). User key is stored in
.cfhost
. - Follow the instructions on screen.
Note
- Value of
resolve_to
has to be DNS record (for example: google.com) instead of IP address.
cloudflare-partner-cli: 使用CNAME方式接入Cloudflare
使用Cloudflare partner功能用CNAME方式接入cloudflare。
你可以使用Python2.x或者Python3.x。无需安装任何依赖。
如需使用中文菜单,请将环境变量的LANG
设置为使用UTF-8 (比如zh_CN.UTF-8)。
使用方法
- 申请Cloudflare partner计划 https://www.cloudflare.com/partners/ 。
- clone本项目或者直接下载脚本。
- 运行
python ./cloudflare-partner-cli.py
。 - 输入
host_key
。可以从这里获得。 - 输入要用来管理域名的账号 (你的个人账号,不是partner账号)。账户信息保存在
.cfhost
文件中。 - 按照屏幕提示操作。
注意
源站地址
必须为DNS记录,如google.com,不能填写IP地址。