Skip to content

Instantly share code, notes, and snippets.

View aofei's full-sized avatar
🛠️
Refactoring...

Aofei Sheng aofei

🛠️
Refactoring...
View GitHub Profile
@aofei
aofei / git-commit-message-generation-SKILL.md
Created February 9, 2026 09:46
Generate Git commit messages following Conventional Commits 1.0.0 specification. Use this when committing changes, amending commits, or simply drafting commit messages.
name description
git-commit-message-generation
Generate Git commit messages following Conventional Commits 1.0.0 specification. Use this when committing changes, amending commits, or simply drafting commit messages.

Git commit message generation

Generate commit messages that follow strict conventions and project-specific style.

Commit message conventions

@aofei
aofei / supervise.sh
Last active January 7, 2025 05:15
A shell script for supervising and keeping processes alive.
#!/bin/sh
set -e
if [[ "$#" -lt 2 || ! -x "$2" ]]; then
echo "Usage: supervise log_tag program [program-argument...]" >&2
exit 2
fi
LOG_TAG="$1"
@aofei
aofei / country-list.json
Created April 2, 2022 17:38
A JSON-encoded country list.
[
{
"code": "AD",
"name": "Andorra",
"continent_code": "EU",
"continent_name": "Europe"
},
{
"code": "AE",
"name": "United Arab Emirates",
@aofei
aofei / china-domain-list
Last active February 14, 2026 09:00
An incomplete China domain list.
This file has been truncated, but you can view the full file.
0.xn--czrs0t
0.xn--unup4y
0.zone
00.net
000.link
000000.net
000000.xin
0000001.xin
000001.xin
@aofei
aofei / china-ip-list
Last active February 14, 2026 04:00
An incomplete China IP list.
1.0.1.0/24
1.0.2.0/23
1.0.8.0/21
1.0.32.0/19
1.1.0.0/24
1.1.2.0/23
1.1.4.0/22
1.1.8.0/21
1.1.16.0/20
1.1.32.0/19
@aofei
aofei / switchgo.sh
Last active January 7, 2025 05:16
A shell script for switching Go versions.
#!/bin/sh
set -e
if [[ "$#" -ne 1 ]]; then
echo "Usage: switchgo version" >&2
exit 2
fi
if [[ -z "${GOBIN}" ]]; then
echo "GOBIN is not set" >&2