Alt+Up Select text blocks in incrementing size
Alt+Down Deselect text blocks in decreasing size
Shift+Shift Search Everywhere pop-up window
| #!/bin/sh | |
| #DEV 内网接口,ODEV外网接口) | |
| IDEV="br-lan" | |
| ODEV="pppoe-wan" | |
| # 定义总的上下带宽 | |
| UP="0.45mbit" | |
| DOWN="9mbit" |
| # draft | |
| # view current data quota | |
| sudo iptables -nvL -t filter --line-numbers | |
| # init | |
| sudo iptables -I OUTPUT -p tcp --sport <target-port> -m quota --quota <quota-bytes> -j ACCEPT | |
| sudo iptables -I OUTPUT -p tcp --sport <target-port> -j DROP | |
| # reset quota |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
| #!/bin/bash | |
| #脚本文件名: tc2 | |
| ######################################################################################### | |
| #用TC(Traffic Control)解决ADSL宽带速度技术 Ver. 1.0 by KindGeorge 2004.12.27 # | |
| ######################################################################################### | |
| #此脚本经过实验通过,更多的信息请参阅http://lartc.org | |
| #tc+iptables+HTB+SFQ | |
| # | |
| #一.什么是ADSL? ADSL(Asymmetric Digital Subscriber Loop,非对称数字用户环路) | |
| #用最简单的话的讲,就是采用上行和下行不对等带宽的基于ATM的技术. |