Skip to content

Instantly share code, notes, and snippets.

@ravageralpha
ravageralpha / anyconnect_gfw.conf
Last active September 23, 2015 05:11
anyconnect route gfw
route = 103.0.0.0/255.0.0.0
route = 106.0.0.0/255.0.0.0
route = 107.0.0.0/255.0.0.0
route = 108.0.0.0/255.0.0.0
route = 141.0.0.0/255.0.0.0
route = 142.0.0.0/255.0.0.0
route = 153.0.0.0/255.0.0.0
route = 160.0.0.0/255.0.0.0
route = 162.0.0.0/255.0.0.0
route = 166.0.0.0/255.0.0.0
@ravageralpha
ravageralpha / 0001-cgroup-add-xattr-support.patch
Created June 10, 2014 03:59
fixing shitty systemd update
From fa647ab1c8fb6580813973976a4fa646623b769d Mon Sep 17 00:00:00 2001
From: Markus Rathgeb <[email protected]>
Date: Thu, 5 Jun 2014 11:10:44 +0200
Subject: [PATCH] cgroup: add xattr support
Squashed commit of the following:
commit 83ba09a9229baee9af79724ab3ef0840c97b3b74
Author: Aristeu Rozanski <[email protected]>
Date: Thu Aug 23 16:53:30 2012 -0400
@ravageralpha
ravageralpha / cnzone.sh
Created June 16, 2013 07:25
generate china ip zone using bestroutetb
#!/bin/sh
# more usable
./generate.sh ./chn.txt \
--net=CN \
--vpn=US,HK,TW,AU,NZ \
--nodefaultgw=1 \
--profile=custom \
--groupgw=1 \
--netgw=wan \
@ravageralpha
ravageralpha / fetchsub.sh
Created October 27, 2012 16:53
shell script get subtitle from shooter.cn
#!/bin/sh
# Author: RA <[email protected]>
USAGE(){
echo "Usage:$(basename $0) [eng] files..."
}
[ $# -eq 0 ] && USAGE && exit 0
ERROR(){