技术综合

互联网知识分享
powerdns-dnsdist基于域名分流实现-专注于知识分享以及生活记录XLX笔记

powerdns-dnsdist基于域名分流实现

dnsdist 是一款高度 DNS、DoS 和滥用感知的负载均衡器。其目标是将流量路由到最佳服务器,为合法用户提供最佳性能,同时分流或阻止滥用流量 文档:https://dnsdist.org/ addLocal('127.0.0.1:52...
木木一土的头像-专注于知识分享以及生活记录XLX笔记木木一土24年12月23日
02799
AdGuardHome配置-专注于知识分享以及生活记录XLX笔记

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...
木木一土的头像-专注于知识分享以及生活记录XLX笔记木木一土21年4月3日
026310
Typecho添加网站加载时间-专注于知识分享以及生活记录XLX笔记

Typecho添加网站加载时间

在主题下的 functions.php 中加入以下代码: ```js /** 加载时间 @return bool */ function timer_start() { global $timestart; $mtime = explode( ‘ ‘, microtime() ); $timestar...
木木一土的头像-专注于知识分享以及生活记录XLX笔记木木一土21年8月29日
026211
Python实现字符串反转-专注于知识分享以及生活记录XLX笔记

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...
木木一土的头像-专注于知识分享以及生活记录XLX笔记木木一土21年8月15日
025512
adguardhome部署无污染DNS-专注于知识分享以及生活记录XLX笔记

adguardhome部署无污染DNS

安装AdGaurdHome 自行搜索,本站提供部署教程 实现原理 使用境外DNS虽然可以实现DNS不被污染,但是缺点也非常明显,非常慢、容易把国内站点解析到海外节点上面去、对CDN不友好。根据[/example.l...
木木一土的头像-专注于知识分享以及生活记录XLX笔记木木一土22年1月1日
02475
powerdns-dnsdist拦截功能更新-专注于知识分享以及生活记录XLX笔记

powerdns-dnsdist拦截功能更新

在/etc/dnsdist目录下新建一个名为luarule.lua的文件当然这里也可以取其它名字以下是这个文件的内容 -- 定义 DNSNameSet 集合 local activeSets = { shuntset = newDNSNameSet(), adblocking = ...
木木一土的头像-专注于知识分享以及生活记录XLX笔记木木一土25年1月1日
024611
Cloudreve安装教程-专注于知识分享以及生活记录XLX笔记

Cloudreve安装教程

什么是Cloudreve Cloudreve 可以让您快速搭建起公私兼备的网盘系统。Cloudreve 在底层支持不同的云存储平台,用户在实际使用时无须关心物理存储方式。你可以使用 Cloudreve 搭建个人用网盘、文...
木木一土的头像-专注于知识分享以及生活记录XLX笔记木木一土21年5月18日
024012
不知道有什么用的Python代码(一)-专注于知识分享以及生活记录XLX笔记

不知道有什么用的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...
木木一土的头像-专注于知识分享以及生活记录XLX笔记木木一土21年8月15日
023013
Python实现求解自幂数-专注于知识分享以及生活记录XLX笔记

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:...
木木一土的头像-专注于知识分享以及生活记录XLX笔记木木一土21年8月15日
021611
Python实现输入某年某月某日,判断这一天是这一年的第几天-专注于知识分享以及生活记录XLX笔记

Python实现输入某年某月某日,判断这一天是这一年的第几天

```python year = int(input(“请输入某年”)) month = int(input(“请输入某月”)) day = int(input(“请输入某日”)) s = 0 daylist = [‘0’,&rsqu...
木木一土的头像-专注于知识分享以及生活记录XLX笔记木木一土21年8月14日
021411