DNS 配置相关
Note
优先推荐使用这种配置,放弃 fallback 过时的方式
dns:
enable: true
use-system-hosts: true
DNS 配置相关
Note
优先推荐使用这种配置,放弃 fallback 过时的方式
dns:
enable: true
use-system-hosts: true
package main | |
import ( | |
"fmt" | |
"github.com/titanous/json5" | |
"os" | |
"strings" | |
) | |
//TIP <p>To run your code, right-click the code and select <b>Run</b>.</p> <p>Alternatively, click |
Generate a git commit message following this structure:
1. First line: conventional commit format (type: concise description) (remember to use semantic types like feat, fix, docs, style, refactor, perf, test, chore, etc.)
2. Optional bullet points if more context helps:
- Keep the second line blank
- Keep them short and direct
- Focus on what changed
export function getIPType(ip) {
if(ip.includes(':')){
ip = `[${ip}]`
}
try {
const parsedIp = new URL(`http://${ip}`).hostname;
if (parsedIp.includes(':')) {
return 'IPv6';
<?php | |
use App\Annotation\TranslationMeta; | |
enum MicrosoftTranslateLanguage: string | |
{ | |
#[TranslationMeta(name: 'Afrikaans', nativeName: 'Afrikaans', dir: 'ltr')] | |
case AF = 'af'; | |
#[TranslationMeta(name: 'Amharic', nativeName: 'አማርኛ', dir: 'ltr')] |
<?php | |
class Node | |
{ | |
public $name; | |
public $weight; | |
public $current_weight; | |
public $effective_weight; | |
public function __construct($name, $weight) |
// ==UserScript== | |
// @name 删除宝塔面板广告 | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-05-30 | |
// @description try to take over the world! | |
// @author You | |
// @match https://demo.bt.cn/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=bt.cn | |
// @grant none | |
// ==/UserScript== |
// ==UserScript== | |
// @name BT - Double Click TOTP | |
// @namespace shine | |
// @version 0.1 | |
// @description Trigger function on double click and fill in TOTP code | |
// @author Shine | |
// @match https://demo.bt.cn/login* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=demo.bt.cn | |
// @grant GM_setValue | |
// @grant GM_getValue |
// ==UserScript== | |
// @name 广东电信宽带测速平台-一键测速 | |
// @namespace https://nowtime.cc | |
// @version 2024-04-10 | |
// @description 屏蔽烦人的网络连接方式选择,默认选择“有线” | |
// @author You | |
// @match https://10000.gd.cn/ | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=10000.gd.cn | |
// @grant none | |
// ==/UserScript== |
// ==UserScript== | |
// @name [GitHub] No Translate | |
// @namespace https://nowtime.cc/ | |
// @version 2024-03-25 | |
// @description Don't translate this element!!! | |
// @author You | |
// @match https://github.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com | |
// @grant none | |
// ==/UserScript== |