Skip to content

Instantly share code, notes, and snippets.

View appleshan's full-sized avatar
🏠
Working from home

Programmer Alan appleshan

🏠
Working from home
View GitHub Profile
@sunny352
sunny352 / rules.md
Last active December 19, 2025 07:23
Cursor rules

智能编程助手协议 v2.0

1. 角色

首席软件架构师,信奉 "Less is More"。

  • 动手前必须先理解现有系统纹理
  • 删除代码优先于增加代码
  • 遇到复杂递归、并发、算法设计等 LLM 能力边界场景时,必须降速并多次验证

2. 核心哲学

@wasulabenjamin
wasulabenjamin / How to activate Sublime Text Build 4200 x64.md
Last active December 23, 2025 12:52
How to activate Sublime Text Build 4200 x64

Activate Sublime Text Build 4200 x64

  1. Go to https://hexed.it/
  2. Click Open File in the top left corner, navigate to instalation folder and select sublime_text.exe
  3. On the Search for bar in the left panel, input: 0F B6 51 05 83 F2 01
  4. Now in the editor, click on the first byte (0F) and start replacing each byte by: C6 41 05 01 B2 00 90
  5. Finally, in the top left corner again, click on Save as and replace the old executable file with the newly created one.

Enjoy an Unlimited User License!

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<!-- Default system-ui fonts -->
<match target="pattern">
<test name="family">
<string>system-ui</string>
</test>
<edit name="family" mode="prepend" binding="strong">
@lilydjwg
lilydjwg / pacsync
Created October 29, 2020 14:21
pacsync: sync with latest mirrors, download from fastest ones
#!/bin/bash -e
unshare -m bash <<'EOF'
mount --make-rprivate /
for f in /etc/pacman.d/*.sync; do
filename="${f%.*}"
mount --bind "$f" "$filename"
done
pacman -Sy
EOF
@fjpalacios
fjpalacios / arch-i3gaps-install.md
Last active November 5, 2025 20:45
Arch + i3-gaps Install Guide

Arch + i3-gaps Install Guide

First set up your keyboard layout. For example, in Spanish:

   # loadkeys es

For a list of all acceptable keymaps:

   # localectl list-keymaps
@geosharma
geosharma / conda_snippets.md
Last active February 15, 2025 14:25
conda command snippets

Conda and Anaconda commands

A list of conda commands that I regularly use but keep forgetting how to use

Update conda

conda update conda

Conda create a new environment with desired python verion

conda create --name envname python=pythonversion If no python=pythonversion is given it will install the default python version for the installed anaconda or conda

@lilydjwg
lilydjwg / gh-check
Last active March 20, 2025 01:02
gh-check: speed test to known GitHub IPs
#!/usr/bin/python3
import asyncio
import time
import socket
import argparse
import aiohttp
class MyConnector(aiohttp.TCPConnector):
@y0ngb1n
y0ngb1n / maven-mirrors.md
Last active November 20, 2025 10:22
使用公共仓库加速 Maven 构建,提升效率!

国内可用的 Maven 的仓库镜像地址

镜像源 Maven 镜像地址 帮助
阿里云 https://maven.aliyun.com/repository/public 使用文档、提供其他软件源加速
腾讯云 http://mirrors.cloud.tencent.com/nexus/repository/maven-public/ 使用文档、提供其他软件源加速
网易云 http://mirrors.163.com/maven/repository/maven-public/ 使用文档、提供其他软件源加速
华为云 https://repo.huaweicloud.com/repository/maven/ 使用文档、提供其他软件源加速

注:部分镜像源使用多线程下载可能会触发 502 ,重试即可。

@franciscocpg
franciscocpg / README.md
Last active September 18, 2025 18:08
Import mitm certificate to CA in arch linux
  1. After installing mitmproxy run it (just type mitmproxy) in a terminal session and quit. This will create the necessaries certificates files at ~/.mitmproxy.

  2. Extract the certificate to .crt format:
    openssl x509 -in ~/.mitmproxy/mitmproxy-ca.pem -inform PEM -out ca.crt

  3. Trust the certificate into CA:
    sudo trust anchor ca.crt

  4. Run the mitmproxy again

@chenshengzhi
chenshengzhi / git_ssh_proxy.md
Last active November 26, 2025 20:44
git ssh 代理设置

仅为 GitHub 设置代理

git 代理

设置 git config --global http.https://github.com.proxy socks5://127.0.0.1:1086
设置完成后, ~/.gitconfig 文件中会增加以下条目:

[http "https://github.com"]
    proxy = socks5://127.0.0.1:1086