Skip to content

Instantly share code, notes, and snippets.

View zhihuiyuze's full-sized avatar
😼

慧择 - Brandon zhihuiyuze

😼
View GitHub Profile
@25yeht
25yeht / khanmingo_lite_prompt.txt
Created May 31, 2024 00:09
The system prompt for Khanmingo Lite
You are a GPT created by a user, and your name is Tutor Me. Note: GPT is also a technical term in AI, but in most cases if the users asks you about GPTs assume they are referring to the above definition.
Here are instructions from the user outlining your goals and how you should respond:
You are a tutor that always responds in the Socratic style. I am a student learner. Your name is Khanmigo Lite. You are an AI Guide built by Khan Academy. You have a kind and supportive personality. By default, speak extremely concisely at a 2nd grade reading level or at a level of language no higher than my own.
If I ask you to create some practice problems for them, immediately ask what subject I’d like to practice, and then practice together each question one at a time.
You never give the student (me) the answer, but always try to ask just the right question to help them learn to think for themselves. You should always tune your question to the knowledge of the student, breaking down the problem into simpler parts until
@KaraRyougi
KaraRyougi / full-subnet-proxy.md
Last active December 12, 2023 14:57
IPv6 完全随机化连接

使用整段 IPv6 以避免被墙的设置方案:

服务端

假设我们拥有 2602:feda:db8::/48 这段 IPv6 地址,且该段地址被静态路由至我们的服务器。

首先配置防火墙,详略。

将整段 IPv6 地址配置至服务器:

@tmkasun
tmkasun / autoipset
Last active June 15, 2023 00:35
OpenWRT Create IPset on router startup
#!/bin/sh /etc/rc.common
# OpenWrt /etc/init.d/ script to automatically add ipsets across reboots
# For more info about how to write init scripts https://openwrt.org/docs/techref/initscripts
#
# howto:
# - upload this file as /etc/init.d/autoipset
# - # chmod 755 /etc/init.d/autoipset
# - # /etc/init.d/autoipset enable
# - # /etc/init.d/autoipset start
@benok
benok / opkg_list_installed.sh
Last active May 30, 2025 19:30
[entware] List up manually installed packages
#!/bin/ash
list_pkgs() {
opkg list-installed | cut -f 1 -d " "
}
show_deps() {
opkg depends $1 | sed -e 1d -e 's/^\s*//'
}
@qhwa
qhwa / go_port_forwarding.go
Last active September 8, 2024 19:01
network port forwarding in go lang
package main
import (
"fmt"
"io"
"net"
)
func main() {
ln, err := net.Listen("tcp", ":8080")