Skip to content

Instantly share code, notes, and snippets.

View erbanku's full-sized avatar

Cactus erbanku

View GitHub Profile
@erbanku
erbanku / Fix Windows No Internet Access Issue.reg
Created August 4, 2023 09:51
Fix Windows No Internet Access Issue - (By the Way, Fuck GFW)
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet]
"ActiveDnsProbeContent"="131.107.255.255"
"ActiveDnsProbeContentV6"="fd3e:4f5a:5b81::1"
"ActiveDnsProbeHost"="dns.msftncsi.com"
"ActiveDnsProbeHostV6"="dns.msftncsi.com"
"ActiveWebProbeContent"="Microsoft NCSI"
"ActiveWebProbeContentV6"="Microsoft NCSI"
"ActiveWebProbeHost"="www.msftncsi.com"

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

[OrangeX4's Cheatsheets]

Source: OrangeX4's Cheatsheets

Develop

Commit

Commit Types

- feat:新功能(feature)
@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 / worker.js
Created May 26, 2023 02:06
OpenAI API Proxy on Cloudflare Workers
const TELEGRAPH_URL = 'https://api.openai.com';
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
async function handleRequest(request) {
const url = new URL(request.url);
const headers_Origin = request.headers.get("Access-Control-Allow-Origin") || "*"
url.host = TELEGRAPH_URL.replace(/^https?:\/\//, '');
@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 / Bing Daily Wallpapers (4K).md
Last active November 20, 2022 06:46
2021-02-01~2022-11-20

Bing Wallpapers

Since 2021-02-01

2022-11-20 | Virgin River in Zion National Park, Utah (© Jonathan Ross/Getty Images)

2022-11-19 | The gates of the Royal Palace (Dar al-Makhzen) in Fez, Morocco (© Adam Smigielski/Getty Images)

25 Things About Life I Wish I Had Known 10 Years Ago

Socrates, considered as one of the founders of Western philosophy, was once named the wisest man on earth by the Oracle of Delphi. When Socrates heard that the oracle had made such a comment, he believed that the statement was wrong.

Socrates said: “ I know one thing: that I know nothing.”

How can the smartest man on earth know nothing? I heard this paradoxical wisdom for the first time from my school teacher when I was 14 or 15. It made such an impact on me that I used Socrates’s quote as my learning strategy.

“I know nothing” to me, means that you might be a wise person, but still, you know nothing. You can learn from everything and everyone.

#!/bin/bash
screen -wipe
cd /root
screen -h 9999 -dmS "ssl-renew"; sleep 0.1
screen -S "ssl-renew" -p 0 -X stuff $"./ssl-renew.sh\n"