This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://gist.github.com/Jamesits/944ab9a484ad34522f6c4bce8d085132 | |
# Captures every IP-CIDR notation in HTML file | |
# then convert it to RouterOS IP List format | |
# Usage: convert.sh source-file.html List-Name | |
# Then use /import file-name=List-Name.scr to | |
# import this list on RouterOS | |
# You can save bgp.he.net search result as HTML | |
# then use this script to convert. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# VPS2RouterOS | |
# | |
# !!!!!!!!!PLEASE READ ALL THE FOLLOWING TEXT BEFORE RUNNING THIS!!!!!!!!!!! | |
# | |
# You can use `wget go.swineson.me/vps2routeros` to download this script | |
# if you have trouble in copy/paste. If you use `curl`, remember to add `-L` | |
# flag. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE | |
# Written by Nathan Hamiel (2010) | |
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler | |
from optparse import OptionParser | |
class RequestHandler(BaseHTTPRequestHandler): | |
def do_GET(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#自动翻墙脚本,配合shadowsocks-libev的ss-redir使用。需要ipset | |
chnroute_file=~/.chnroute | |
ignore_ips=( | |
45.32.50.160 | |
45.127.93.239 | |
103.214.68.175 | |
0.0.0.0/8 | |
10.0.0.0/8 | |
127.0.0.0/8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Surge for Mac 配置文件 | |
# 显示 Finder 隐藏文件,将 .surge.conf 文件复制到 ~/ 也就是「个人」目录下。 | |
[General] | |
# warning, notify, info, verbose | |
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local | |
bypass-tun = 0.0.0.0/8, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10 | |
loglevel = notify | |
# 默认 IP 和端口,不修改的话系统网络 HTTP 和 HTTPS 代理设置中就是 127.0.0.1:6152 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |