Skip to content

Instantly share code, notes, and snippets.

View billryan's full-sized avatar

billryan billryan

View GitHub Profile
@billryan
billryan / README.md
Last active August 30, 2022 13:41 — forked from chuangbo/README.md
DNSPod DDNS Python Script

替换上你的ID, Token, domain, sub_domain 就可以运行了。(ID,Token) 可以从 API 鉴权方式升级为 Token 获得。 脚本会在后台一直运行,初始化时会根据 sub_domain 查询是否已经创建,每隔30秒检查一遍IP,如果修改了就更新IP。

以 Archlinux 为例,按照如下步骤操作即可设置开机启动这个 DDNS 服务。

sudo wget -O /usr/local/bin/dnspod_ddns.py https://gist.github.com/billryan/239778f0821937939c8c140bdddd6840/raw/dnspod_ddns.py
sudo chmod +x /usr/local/bin/dnspod_ddns.py
sudo wget -O /etc/systemd/system/dnspod-ddns.py.service https://gist.github.com/billryan/239778f0821937939c8c140bdddd6840/raw/dnspod-ddns.service
sudo systemctl start dnspod-ddns
@billryan
billryan / 70-noto-cjk-zh-hans.conf
Last active September 18, 2017 22:45 — forked from anthonywong/20-noto-cjk.conf
思源/Noto CJK fonconfig 設定檔
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<!-- /etc/fonts/conf.d/20-noto-cjk-zh-hans.conf
Fallback fonts zh-Hans
-->
<fontconfig>
<match target="pattern">
<test name="lang">
<string>zh-tw</string>
</test>