Clash 配置 DNS 的最佳实践,没有之一

基础 让我们先从官方 Wiki 开始看起。 先来看这样一段配置: 1 2 3 4 5 6 7 8 9 10 11 dns: enable: true listen: 0.0.0.0:53 ipv6: true default-nameserver: - 114.114.114.114 - 8.8.8.8 nameserver: - 114.114.114.114 - https://doh.pub/dns-query - tls://dns.alidns.com:853 我们来一个一个看。 enable 字段用于设

DoH vs DoT Benchmark: Choose Your Safe DNS Protocol

Background What is a DNS server? What is an IP address? IP address is a string consist of numbers and dots, for example 142.250.69.196. It is the identification of a computer in the network, we can use it to identify a computer in the network and establish a link with it. What is a domain name? Domain name is a string consist of English characters and dots, for example www.google.com. It is the identification of a computer (or a service) in the network, we can use it to identify a computer (or a service) in the network and establish a link with it.

不废话讲解 KMP 算法

Leetcode 28. Find the Index of the First Occurrence in a String KMP 主要用在 pattern 匹配上。 比如给出一个字符串 s 和一个字符串 pattern ,请找出 pattern 第一次在 s 中出现的下标。 最长公共前后缀 前缀是指不包含

Contributing Guide For My Color Schemes

About In this post I’m going to briefly describe how to contribute to my color schemes. All of my color schemes share a very similar code base, so I’m going to take one of these color schemes gruvbox-material for example in this post. Code Structure /.githooks/pre-commit: Pre-commit hook. /autoload/gruvbox_material.vim: Contains helper functions and color palette. /autoload/airline/themes/gruvbox_material.vim: Airline theme. /autoload/lightline/colorscheme/gruvbox_material.vim: Lightline theme. /colors/gruvbox-material.vim: The color scheme file. /doc/gruvbox-material.txt: The help doc. /lua/lualine/themes/gruvbox-material.