使用 ipset -R
OR iptables-restore
添加规则
优先使用 ipset
, 其在流量转发时匹配效率相对 iptables
要高
测试 ss-rules
在 ignore.list
包含 4747
条 IP 的执行用时:
# time /usr/bin/ss-rules -c $CONFIG -i $IGNORE
package calendar; | |
public class TestCalendar { | |
public static void main(String[] args) { | |
ViewCalendar vc = new ViewCalendar(2015); | |
vc.print(); | |
// vc.print(9); | |
} | |
} |
// 所有方法都在最后返回当前元素(包括appendTo和prependTo) | |
// 可以使用链式写法 | |
// append方法 向匹配的元素内部追加内容 | |
// 参数可以是字符串或者是使用createElement()方法创建的DOM对象 | |
Node.prototype.append = function(ele) { | |
if (typeof ele === 'string') { | |
var t = document.createElement('div'); | |
t.innerHTML = ele; | |
while (t.firstChild) { |
:: AdmX - Aria2 Download Manager for Xunlei | |
:: Release by aa65535 | |
:: Time: 2013-12-13 03:08:57 | |
:: External Command: aria2c.exe, wfr.exe | |
@echo off | |
title Aria2& color f3& mode con: cols=80 lines=8& setlocal enabledelayedexpansion | |
:: 检查Aria2是否可用 | |
aria2c& cls | |
if !errorlevel! gtr 1 echo aria2c.exe not found!& pause>nul& exit |
0000000000000000000000000000011111111111111111000000001000000000000000100000000101111111111111010000000010111111111111101000000001011011111111110100000000101110111111111010000000010111101111111101000000001011101111111110100000000101101110000111010000000010111111111111101000000001011111111111110100000000101111111111111010000000010000000000000001000000001111111111111111100000000000000000000000000000 | |
0000110000111100001100000000011000111111000110000000000100011111100010000000000011001111110011000000000001111111111111100000000000001111111111000000000000000011111111000000000000000011111111110000000000001111111111111111000000000000111111111100000000000000011111111110000000000000111111111111110000000000011011111111011000000000001000111111000100000000001100000110000011000000000110000000000001100000 |
#!/bin/sh | |
CD_VER="1.1.8" | |
CD_SHA="324844f" | |
CD_RLS="1" | |
SS_VER="1.5.3" | |
SS_SHA="5cc562f" | |
SS_RLS="1" | |
SV_VER="0.1.4" | |
SV_SHA="0d51fd3" |
#!/bin/bash | |
HOST="123.123.123:21" # FTP服务器地址 | |
USER="username" # FTP用户名 | |
PASS="password" # FTP密码 | |
SCD="/" # 远程根目录 | |
LCD="/home/www/" # 本地根目录 | |
LST="dir1 dir2 dir3" # 要同步的目录, 空格隔开 | |
for RCD in $LST; do |
(function ($) { | |
// 根据当前页面编码进行URL编码 | |
$.urlEncode = function(s) { | |
var a, u; | |
a = document.createElement('a'); | |
a.href = '/?_=' + s; | |
u = a.href.slice(a.href.indexOf('/?_=') + 4); | |
return encodeURIComponent(u).replace(/%25([0-9A-F]{2})/gi, '%$1'); | |
}; | |
// 添加 localParam 方法 URL编码使用 $.urlEncode |
# 并发查询所有上游DNS服务器 | |
all-servers | |
# 本地DNS缓存最小有效期 | |
min-cache-ttl=3600 | |
# 本地DNS缓存数目 | |
cache-size=65535 | |
# 上游DNS服务器, 可设置多个 | |
server=8.8.4.4 | |
#server=8.8.8.8 | |
server=114.114.114.114 |
:: 启动后需要保留窗口, 关闭窗口则结束进程 | |
aria2c --conf-path=aria2.conf -D |