This file contains hidden or 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
| // ==UserScript== | |
| // @name Remove Hackaday comments | |
| // @namespace http://numin.it | |
| // @version 0.6 | |
| // @description remove all potential clues that comments may exist on hackaday.com | |
| // @author numinit | |
| // @match http://hackaday.com/* | |
| // @match https://hackaday.com/* | |
| // @grant none | |
| // ==/UserScript== |
This file contains hidden or 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
| \documentclass[zihao=-4,oneside,UTF8]{ctexbook} | |
| \usepackage{titlesec,fancyhdr,xltxtra,hyperxmp} | |
| \usepackage[xetex,a4paper,centering,scale=0.8]{geometry} | |
| \input{config.tex} | |
| \xeCJKsetup{CheckSingle} | |
| \pagestyle{fancy} | |
| \setmainfont{\bookmainfont} |
由于路由管控系统的建立,实时动态黑洞路由已成为最有效的封锁手段,TCP连接重置和DNS污染成为次要手段,利用漏洞的穿墙方法已不再具有普遍意义。对此应对方法是多样化协议的VPN来抵抗识别。这里介绍一种太简单、有时很朴素的“穷人VPN”。
朴素VPN只需要一次内核配置(Linux内核),即可永久稳定运行,不需要任何用户态守护进程。所有流量转换和加密全部由内核完成,原生性能,开销几乎没有。静态配置,避免动态握手和参数协商产生指纹特征导致被识别。并且支持NAT,移动的内网用户可以使用此方法。支持广泛,基于L2TPv3标准,Linux内核3.2+都有支持,其他操作系统原则上也能支持。但有两个局限:需要root权限;一个隧道只支持一个用户。
朴素VPN利用UDP封装的静态L2TP隧道实现VPN,内核XFRM实现静态IPsec。实际上IP-in-IP隧道即可实现VPN,但是这种协议无法穿越NAT,因此必须利用UDP封装。内核3.18将支持Foo-over-UDP,在UDP里面直接封装IP,与静态的L2TP-over-UDP很类似。
This file contains hidden or 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 | |
| CHAINLIST=$(/sbin/iptables -nL | grep 'Chain block-traffic-from-openbl' | cut -d\ -f 2) | |
| if [ -z $CHAINLIST ]; then | |
| /sbin/iptables -N block-traffic-from-openbl | |
| /sbin/iptables -A INPUT -j block-traffic-from-openbl | |
| fi | |
| BLACKLIST=$(/usr/bin/curl -fs http://www.openbl.org/lists/base_7days.txt.gz | gunzip | egrep "[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}") |
This file contains hidden or 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
| :: this is dwarden's experimental TCP related batch | |
| @netsh int tcp set global chimney=enabled | |
| @netsh int tcp set global dca=enabled | |
| @netsh int tcp set global ecncapability=enabled | |
| @netsh int tcp set global congestionprovider=ctcp | |
| @netsh int tcp set global timestamps=enabled | |
| @rem netsh int tcp set global autotuninglevel=disabled | |
| @netsh int tcp show global autotuninglevel | |
| :: disabling autotuning needs testing, sometimes help sometimes not |
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| import rsa | |
| import re | |
| import time | |
| import json | |
| import traceback | |
| from urllib import urlencode, unquote, quote | |
| from Cookie import SimpleCookie | |
| import tornado |
This file contains hidden or 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 | |
| # -*- coding: utf-8 -*- | |
| import sys | |
| import urllib | |
| import urllib2 | |
| import cookielib | |
| import base64 | |
| import re | |
| import json |
This is my constantly updated CS:S autoexec config.
Put the file autoexec.cfg in ...\Steam\steamapps\*steam username*\counter-strike source\cstrike\cfg or take what you want from it and add to your autoexec config!
-novid -noborder -high -threads 4 -freq 144 +exec autoexec.cfg
This file contains hidden or 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
| # luna_pinyin.custom.yaml | |
| # | |
| # 在【朙月拼音】裏使用Emoji表情(這份配置已過時,新的emoji實現代碼在 https://github.com/rime/rime-emoji ) | |
| # | |
| # 保存到Rime用戶文件夾後,重新部署生效 | |
| # ~/.config/ibus/rime (linux) | |
| # ~/Library/Rime (macos) | |
| # %APPDATA%\Rime (windows) | |
| # | |
| # 如果目標文件已經包含其他修改內容,只需按照縮進合併 patch: 以下的部分 |
NewerOlder