排序
powerdns-dnsdist基于域名分流实现
dnsdist 是一款高度 DNS、DoS 和滥用感知的负载均衡器。其目标是将流量路由到最佳服务器,为合法用户提供最佳性能,同时分流或阻止滥用流量 文档:https://dnsdist.org/ addLocal('127.0.0.1:52...
AdGuardHome配置
上游 DNS 服务器 tls://dot.360.cn https://doh.360.cn/dns-query tls://dns.pub https://dns.pub/dns-query tls://dns.alidns.com https://dns.alidns.com/dns-query tls://dns.ipv6dns.com ht...
Typecho添加网站加载时间
在主题下的 functions.php 中加入以下代码: ```js /** 加载时间 @return bool */ function timer_start() { global $timestart; $mtime = explode( ‘ ‘, microtime() ); $timestar...
Python实现字符串反转
a = input() t = [] t1 = [] s = ‘’ for x in range(len(a)): t.append(a[x]) for y in range(len(t) - 1,-1,-1): t1.append(t[y]) for c in range(len(t1)): s += str(t1[c]) prin...
adguardhome部署无污染DNS
安装AdGaurdHome 自行搜索,本站提供部署教程 实现原理 使用境外DNS虽然可以实现DNS不被污染,但是缺点也非常明显,非常慢、容易把国内站点解析到海外节点上面去、对CDN不友好。根据[/example.l...
powerdns-dnsdist拦截功能更新
在/etc/dnsdist目录下新建一个名为luarule.lua的文件当然这里也可以取其它名字以下是这个文件的内容 -- 定义 DNSNameSet 集合 local activeSets = { shuntset = newDNSNameSet(), adblocking = ...
Cloudreve安装教程
什么是Cloudreve Cloudreve 可以让您快速搭建起公私兼备的网盘系统。Cloudreve 在底层支持不同的云存储平台,用户在实际使用时无须关心物理存储方式。你可以使用 Cloudreve 搭建个人用网盘、文...
不知道有什么用的Python代码(一)
a = input() targe = input() list = [] for x in range(len(a)): list.append(a[x]) for y in range(len(list)): a = int(list[y]) for c in range(len(list) - 1,-1,-1): b = int(list[c]) if...
Python实现求解自幂数
```python a = input(“请输入求解自幂数的位数”) a = int(a) x = 10(a-1) y = 10a count = 0 for c in range(x,y): s = str(c) sum = 0 for m in s: sum += int(m)**a if c == sum:...
Python实现输入某年某月某日,判断这一天是这一年的第几天
```python year = int(input(“请输入某年”)) month = int(input(“请输入某月”)) day = int(input(“请输入某日”)) s = 0 daylist = [‘0’,&rsqu...