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 September 8, 2023 18:22
Substitute fonts with Sarasa Gothic CJK and Sarasa Mono.
// ==UserScript==
// @name Font-sub:Sarasa-Gothic
// @name:en-US Font substitute: Sarasa Gothic
// @name:zh-CN 字体替换:更纱黑体
// @name:zh-TW 字体替换:更紗黑體
// @name:zh-HK 字体替换:更紗黑體
// @name:ja-JP フォント置換:更紗ゴシック
// @name:ko-KR 글꼴 대체:사라사고딕
// @namespace https://gist.github.com/zozovo/8a76915acf197a873304dd23f2cfd49c
// @version 7.3
@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 / userstyle.styl
Last active July 12, 2019 18:42 — forked from blackgear/userstyle.styl
Change font-family to Sarasa UI SC and Sarasa Mono T SC.
CONFIG = {
'Arial Black' : 'ENG',
'Arial' : 'ENG',
'Calibri' : 'ENG',
'Cambria' : 'ENG',
'Candara' : 'ENG',
'Comic Sans MS' : 'ENG',
'Constantia' : 'ENG',
'Corbel' : 'ENG',
'Georgia' : 'ENG',
@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);