Skip to content

Instantly share code, notes, and snippets.

@zozovo
zozovo / doh.ps1
Last active October 4, 2022 21:03
add DNS over HTTPS support for alidns and dnspod
netsh dns add encryption server=223.5.5.5 dohtemplate=https://223.5.5.5/dns-query
netsh dns add encryption server=223.6.6.6 dohtemplate=https://223.6.6.6/dns-query
netsh dns add encryption server=1.12.12.12 dohtemplate=https://1.12.12.12/dns-query
netsh dns add encryption server=120.53.53.53 dohtemplate=https://120.53.53.53/dns-query
@zozovo
zozovo / cyberpunk2077.lua
Created January 14, 2021 05:36
functions for Cyber Engine Tweaks
Game.AddToInventory("Items.money", 1048576)
Game.AddToInventory("Items.CommonMaterial1", 4096)
Game.AddToInventory("Items.UncommonMaterial1", 4096)
Game.AddToInventory("Items.RareMaterial1", 4096)
Game.AddToInventory("Items.RareMaterial2", 4096)
Game.AddToInventory("Items.EpicMaterial1", 4096)
Game.AddToInventory("Items.EpicMaterial2", 4096)
Game.AddToInventory("Items.LegendaryMaterial1", 4096)
Game.GiveDevPoints("Attribute", 20) -- Attribute (skill) points
@zozovo
zozovo / Sarasa-Gothic.user.js
Last active November 7, 2024 02:03
Replace the font with Sarasa Gothic (CJK) and the corresponding monospaced one.
// ==UserScript==
// @name Sarasa-Gothic-Font-Substitution-Tool
// @name:en-US Sarasa Gothic Font Substitution Tool
// @name:zh-CN 更纱黑体字体替换工具
// @name:zh-TW 更紗黑體字型替換工具
// @name:zh-HK 更紗黑體字型替換工具
// @name:ja-JP 更紗ゴシックフォント置換ツール
// @name:ko-KR 사라사고딕 폰트 대체 도구
// @namespace https://gist.github.com/zozovo/8a76915acf197a873304dd23f2cfd49c
// @version 8.9
@zozovo
zozovo / lantools.ahk
Last active June 8, 2021 16:46
An AHK script with GUI for landian editors
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#Include Gdip_All.ahk
; Start gdi+
If !pToken := Gdip_Startup()
{
@zozovo
zozovo / FontTweak.lua
Last active January 6, 2019 17:43
修改魔兽世界部分 UI 字体大小
-- Quest Frame
QuestTitleFont:SetFont("Fonts\\ARKai_T.ttf", 20);
QuestTitleFontBlackShadow:SetFont("Fonts\\ARKai_T.ttf", 20);
QuestFont:SetFont("Fonts\\ARKai_T.ttf", 17);
QuestFontNormalSmall:SetFont("Fonts\\ARKai_T.ttf", 16);
QuestFontHighlight:SetFont("Fonts\\ARKai_T.ttf", 16);
-- Player Frame
PlayerName:SetFont(ImpFont, 11, flags);
PlayerLevelText:SetFont(ImpFont, 11, flags);