Skip to content

Instantly share code, notes, and snippets.

@Weeker
Weeker / surge.conf
Created October 12, 2015 15:28 — forked from janlay/README.md
Yet another config for Surge.app (build 243+)
# This config file was created for myself (@janlay). You may want to add or remove some rules to make efficient use of the Internet.
# NOTE: This file only contains rules and depends on main.conf which defines your own proxy.
# Your main.conf will look like this:
# [Proxy]
# Proxy = https,server.address,port,username,password
#
# Make sure this line included in the main.conf
# #!PROXY-OVERRIDE:this-file.conf
@Weeker
Weeker / .surge.conf
Last active March 28, 2022 22:06
Surge For Mac 老版本存档
[General]
interface = 127.0.0.1
port = 8040
loglevel = notify
all-tcp-mode = false
[Proxy]
Proxy = custom, IP, Port, rc4-md5, Password, http://weeker.org/SSEncrypt.module
[Rule]
@Weeker
Weeker / Surge.md
Last active September 12, 2015 14:36
Surge

Feature

  • 替代 PAC,实现根据规则区分选择代理线路
  • 支持 SOCKS5 和 Shadowsocks 协议
  • 完整支持所有的 Shadowsocks 加密方式 (table, rc4-md5, salsa20, chacha20, aes-256-cfb, aes-192-cfb, aes-128-cfb, bf-cfb, cast5-cfb, des-cfb, rc2-cfb, rc4, seed-cfb)
  • 全面支持双向 HTTP Keep-Alvie
  • 快,各种黑科技加速
  • 直接临时修改某个域名的访问规则 (暂时仅 Mac 版本)
  • 支持使用 GeoIP 规则决定线路

Usage

### Keybase proof
I hereby claim:
* I am weeker on github.
* I am weeker (https://keybase.io/weeker) on keybase.
* I have a public key whose fingerprint is 8015 FB4B 8B3E 425B B8DD FF88 DC9E E53C 9B74 A652
To claim this, I am signing this object:
@Weeker
Weeker / 80fixsim
Last active August 29, 2015 14:13
#!/system/bin/sh
# Fake carrier for ROMs with init.d support
# To disable, touch /etc/no_fix_sim
if [ -e /etc/no_fix_sim ]; then
exit 0
fi
# Wait long enough for possible optimization process
wait_cnt=1000
@Weeker
Weeker / py-kms.sh
Created May 8, 2014 13:43
Emulated KMS Servers on non-Windows platforms
#!/bin/sh
### BEGIN INIT INFO
# Provides: KMS v6 emulator
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: Emulated KMS Servers on non-Windows platforms
@Weeker
Weeker / ssledge
Last active April 12, 2017 06:18
SSLedge for Raspberry Pi
#!/bin/sh
### BEGIN INIT INFO
# Provides: SSLedge
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: SSLedge for Raspberry Pi
#!/bin/sh
### BEGIN INIT INFO
# Provides: btsync
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Multi-user daemonized version of btsync.
root@v2:~# cat /etc/asterisk/extensions.conf
;==================================
; extensions.conf - the Asterisk dial plan
;
[general]
static=no
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no
@Weeker
Weeker / sip.conf
Created April 28, 2014 05:42 — forked from bao3/sip.conf
root@v2:~# cat /etc/asterisk/sip.conf
;=================================
; SIP Configuration for Asterisk
;
[general]
context=sip ;默认使用extension.conf中的sip字段
videosupport=yes ;打开视频支持,有些客户端(手机)支持视频
textsupport = yes ;短信支持
ccept_outofcall_message = yes
outofcall_message_context = messages