Skip to content

Instantly share code, notes, and snippets.

View erbanku's full-sized avatar
Building awesome

Cactus erbanku

Building awesome
View GitHub Profile
@erbanku
erbanku / DoH.md
Created October 17, 2021 06:42
Add DoH DNS for Windows
  1. run regedit.exe
  2. Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters\DohWellKnownServers
  3. Add a new key named DNS IP
  4. Add a new REG_SZ named Template with value: DNS query URL
天涯论坛审查得厉害啊。无法发帖,搬来这里。
这是公共github帐号,本文很有可能被他人删除。如果你觉得本文有道理,欢迎保存或转载到其他论坛,当作备份。
正在考虑低成本移民,这是我找到的关于厄瓜多尔的情况,若有不实烦请指正。
具体法律、规定请找当地律师咨询。我搜集到的资料不一定正确,可能人云亦云,还可能过时。
厄瓜多尔:
1.优点:
1.1.移民门槛低
十几万身家?可以。大学毕业?可以。后面会说到。
@erbanku
erbanku / chatpdf-zh.ipynb
Created March 25, 2023 12:06 — forked from ninehills/chatpdf-zh.ipynb
ChatPDF-zh.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@erbanku
erbanku / gist:448059c9443a526646ecc7c583fb8264
Created June 3, 2023 03:39 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@erbanku
erbanku / wsl_clash_proxy.sh
Created March 7, 2025 12:56 — forked from libChan/wsl_clash_proxy.sh
WSL2使用clash for windows代理
# WSL通过Win访问网络,所以WSL的网关指向的是Windows,DNS服务器指向的也是Windows,设置WSL的proxy为win的代理ip+端口即可
# WSL中的DNS server在/etc/resolv.conf中查看,该文件是由/etc/wsl.conf自动生成的。
# 如果关闭了wsl.conf中自动生成resolve.conf并自行修改了resolve.conf,DNS nameserver并不是本机win ip
# 需要开启wsl.conf的自动生成,再运行以下命令
# https://zhuanlan.zhihu.com/p/153124468
# 添加到环境变量设置中,例如~/.zshrc
export hostip=$(cat /etc/resolv.conf |grep -oP '(?<=nameserver\ ).*')
export https_proxy="http://${hostip}:7890"
export http_proxy="http://${hostip}:7890"
@erbanku
erbanku / you_are_not_right.sh
Created October 13, 2025 13:50 — forked from ljw1004/you_are_not_right.sh
A UserPromptSubmit hook for Claude Code to stop it saying "You're right"
#!/bin/bash
set -euo pipefail
trap 'echo "at line $LINENO, exit code $? from $BASH_COMMAND" >&2; exit 1' ERR
# This is a Claude Code hook to stop it saying "you are right".
#
# Installation:
# 1. Save this script and chmod +x it to make it executable.
# 2. Within Claude Code, /hooks / UserPromptSubmit > Add a new hook (this file)
#
@erbanku
erbanku / -manage-chrome-search-engines.md
Created October 20, 2025 15:06 — forked from masonwan/-manage-chrome-search-engines.md
Better way to manage Chrome's search engines

Problem

Chrome has the feature to automatically add search engine when it detects an input field on websites. After using Chrome months, it often resutls a bunch of search engines stayed in the settings. And the setting page does not provide a convinient way to remove them.

Updates on 2024-11-21

The editting the Web Data as SQLite file did not seem to work anymore. Chrome seems to revert all the changes when restart.

To make it even worse, it seems that the DOM tree is not accessable from the development console on the setting page, so even a bookmarklet could not work. Neighter does Chrome provide an API to access the search engines.

@erbanku
erbanku / UI Access.md
Created October 27, 2025 13:17 — forked from anonymous1184/UI Access.md
Run scripts with UI Access (UIA)

UI Access (UIA)

What's UI Access?

UIA is the way around UIPI ([User Interface Privilege Isolation][1]) which in simple terms is a way of bypassing the security built into Windows to avoid applications interacting with other applications that have a higher integrity level (security).

In other words, when you run a script it cannot communicate with the system or elevated (running as Administrator) processes; this is to avoid insecure and non-sanctioned interactions.

Why would I want UIA?