Skip to content

Instantly share code, notes, and snippets.

# 你可以从该 URL 下载这个配置文件: http://surge.run/config-example/ios.conf
# 用编辑器编辑后,再通过 iTunes, URL, AirDrop 或者 iCloud Drive 复制回 iOS 设备
# Version 2.0
[General]
# 日志等级: warning, notify, info, verbose (默认值: notify)
loglevel = notify
# 跳过某个域名或者 IP 段,这些目标主机将不会由 Surge Proxy 处理。(在 macOS
# 版本中,如果启用了 Set as System Proxy, 那么这些值会被写入到系统网络代理
# 设置中.)
@x1nchen
x1nchen / .tmux.conf
Created April 26, 2020 16:38
tmux config file
set -g bell-action any
set -g terminal-overrides 'rxvt-unicode*:sitm@,ritm@'
# Bind the basic hotkey and default shell
unbind C-b
set -g prefix C-x
set -g status-keys emacs
set -gw mode-keys emacs
# Bind the copy use reattach-to-user-namespace
@x1nchen
x1nchen / main.go
Last active October 11, 2021 02:43
os.Signal
package main
import (
"fmt"
"sync"
"time"
)
func main() {
var mu sync.Mutex
@x1nchen
x1nchen / main.go
Last active October 11, 2021 02:51
os.Signal
package main
import (
"fmt"
"os"
"os/signal"
"syscall"
"time"
)
@x1nchen
x1nchen / gist:a32e09e8024a6a51c5b606f0d10015d0
Created February 18, 2025 10:29
docker compose run tinyproxy at port 10083
mkdir tinyproxy && cd tinyproxy
# Dockerfile
cat > Dockerfile << 'EOF'
FROM alpine:3.19
RUN apk add --no-cache tinyproxy apache2-utils
COPY tinyproxy.conf /etc/tinyproxy/tinyproxy.conf