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.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

@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
#!/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