Skip to content

Instantly share code, notes, and snippets.

View erbanku's full-sized avatar
♥️
Focusing

Cactus erbanku

♥️
Focusing
View GitHub Profile
@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"

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 / 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:
@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.
天涯论坛审查得厉害啊。无法发帖,搬来这里。
这是公共github帐号,本文很有可能被他人删除。如果你觉得本文有道理,欢迎保存或转载到其他论坛,当作备份。
正在考虑低成本移民,这是我找到的关于厄瓜多尔的情况,若有不实烦请指正。
具体法律、规定请找当地律师咨询。我搜集到的资料不一定正确,可能人云亦云,还可能过时。
厄瓜多尔:
1.优点:
1.1.移民门槛低
十几万身家?可以。大学毕业?可以。后面会说到。
@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