Skip to content

Instantly share code, notes, and snippets.

@kang000feng
kang000feng / openconnect.md
Last active September 21, 2015 18:38 — forked from moklett/openconnect.md
OpenConnect VPN on Mac OS X

Unfortunately, the Cisco AnyConnect client for Mac conflicts with Pow. And by "conflicts", I mean it causes a grey-screen-of-death kernel panic anytime you connect to the VPN and Pow is installed.

As an alternative, there is OpenConnect, a command-line client for Cisco's AnyConnect SSL VPN.

Here's how to get it set up on Mac OS X:

  1. OpenConnect can be installed via homebrew:

     brew update
    

brew install openconnect

@kang000feng
kang000feng / ip_range.txt
Created October 4, 2015 17:05
整合XX-net以及CNMan/GoogleIPRange所有IP段,去掉重复IP段,去掉国内/大陆公司IP段,并转换为CIDR格式,共835,660个IP,一晚上就能扫完。
1.0.0.0/24
1.1.1.0/24
1.2.3.0/24
1.9.22.0/24
1.9.24.0/24
1.9.57.0/24
1.9.131.0/24
1.179.248.0/21
1.255.22.0/24
1.255.33.0/24
@kang000feng
kang000feng / surge_main.conf
Created November 1, 2015 09:49 — forked from jason5ng32/surge.conf
Surge Configs ( Both 2 files are needed )
[General]
loglevel = notify
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12,127.0.0.0/24,100.64.0.0/10
bypass-tun = 0.0.0.0/8, 1.0.0.0/9, 1.160.0.0/11, 1.192.0.0/11, 10.0.0.0/8, 14.0.0.0/11, 14.96.0.0/11, 14.128.0.0/11, 14.192.0.0/11, 27.0.0.0/10, 27.96.0.0/11, 27.128.0.0/9, 36.0.0.0/10, 36.96.0.0/11, 36.128.0.0/9, 39.0.0.0/11, 39.64.0.0/10, 39.128.0.0/10, 42.0.0.0/8, 43.224.0.0/11, 45.64.0.0/10, 47.64.0.0/10, 49.0.0.0/9, 49.128.0.0/11, 49.192.0.0/10, 54.192.0.0/11, 58.0.0.0/9, 58.128.0.0/11, 58.192.0.0/10, 59.32.0.0/11, 59.64.0.0/10, 59.128.0.0/9, 60.0.0.0/10, 60.160.0.0/11, 60.192.0.0/10, 61.0.0.0/10, 61.64.0.0/11, 61.128.0.0/10, 61.224.0.0/11, 100.64.0.0/10, 101.0.0.0/9, 101.128.0.0/11, 101.192.0.0/10, 103.0.0.0/10, 103.192.0.0/10, 106.0.0.0/9, 106.224.0.0/11, 110.0.0.0/7, 112.0.0.0/9, 112.128.0.0/11, 112.192.0.0/10, 113.0.0.0/9, 113.128.0.0/11, 113.192.0.0/10, 114.0.0.0/9, 114.128.0.0/11, 114.192.0.0/10, 115.0.0.0/8, 116.0.0.0/8, 117.0.0.0/9, 117.128.0.0/10, 118.0.0.0/11, 118.64.0.0/10, 118.128.0.0
@kang000feng
kang000feng / shadowsocks_goagent.md
Created May 24, 2016 17:39 — forked from vmlinz/shadowsocks_goagent.md
Shadowsocks with goagent through meow proxy

Shadowsocks with goagent

前几天写了一个GoAgent开多线程教程,里面提到使用Shadowsocks前置代理GoAgent,一直有网友发帖问如何操作,现在明确一下具体作法。
(只讨论在windows下)


ss前置代理GoAgent主要适用于SS看视频慢的用户。因为ss没有大文件自动分段下载功能,下载大文件(看视频)的时候会产生持续的tcp连
接。这种持续的tcp连接很容易被GFW干扰GoAgent有一个独特的“大文件自动分段下载”功能,且可以多线程下载。多线程可以加快下载速度,
自动分段可以避免产生持续的tcp连接,减少被GFW干扰的可能。ss前置代理GoAgent的目的就是使用GoAgent的“大文件自动分段下载”使ss不

产生持续的tcp连接,多线程加快下载速度,改善视频体验。

Microsoft (R) Windows Debugger Version 6.12.0002.633 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [D:\ShareFiles\052916-10500-01.dmp]
Mini Kernel Dump File: Only registers and stack trace are available
Symbol search path is: SRV*D:\symbols\*http://msdl.microsoft.com/download/symbols
Executable search path is:
@kang000feng
kang000feng / sysctl.conf
Created May 30, 2016 09:35 — forked from chenshaoju/sysctl.conf
sysctl.conf
#
# /etc/sysctl.conf - Configuration file for setting system variables
# See /etc/sysctl.d/ for additonal system variables
# See sysctl.conf (5) for information.
#
#kernel.domainname = example.com
# Uncomment the following to stop low-level messages on console
#kernel.printk = 3 4 1 3
@kang000feng
kang000feng / modernIE-downloader.sh
Created June 1, 2016 13:25 — forked from jedihe/modernIE-downloader.sh
Download all VirtualBox VMs from modern IE, for use on a Linux host.
#!/bin/bash
### IE7 - Vista
mkdir -p ~/modernIE-vms/ie7vista
cd ~/modernIE-vms/ie7vista
wget http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/Linux/IE7_Vista/IE7.Vista.For.LinuxVirtualBox.part1.sfx
wget http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/Linux/IE7_Vista/IE7.Vista.For.LinuxVirtualBox.part2.rar
wget http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/Linux/IE7_Vista/IE7.Vista.For.LinuxVirtualBox.part3.rar
wget http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/Linux/IE7_Vista/IE7.Vista.For.LinuxVirtualBox.part4.rar
wget http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/Linux/IE7_Vista/IE7.Vista.For.LinuxVirtualBox.part5.rar
@kang000feng
kang000feng / xdown.sh
Last active June 3, 2016 02:51 — forked from 4ft35t/xdown.sh
用 aria2 多源下载 Download file use ISP's cache server for more speed.
#!/bin/bash
[ $# -eq 0 ] && echo "see aria2c -h" && exit
url=""
cdn='
120.52.73.2
120.52.73.4
120.52.73.6
120.52.73.7
120.52.73.10
@kang000feng
kang000feng / 0障碍四个步骤手把手教你一站式搭建科学上网教程 SS最详尽菜鸟教程 txt
Last active January 18, 2023 08:28
surge0障碍四个步骤手把手教你搭建科学上网 最详尽菜鸟教程
7-20更新: Vultr夏日促销 使用本链接注册账户立即到账20 美元: http://www.vultr.com/?ref=6920741-3B
配合优惠码 NGINX20 ,总共送 40$ , 免费送 50G 备份空间,支持随意安装 windows 系统, 还支持免流, 还有充值赠送活动: 充多少送多少, 最高达 200 美金
求加分 如果你觉得教程对你有帮助,请 +1 、 转发(公开) ,以帮助更多的人。欢迎转载,请附上链接. 谢谢!
(遇到问题的小伙伴多看几遍教程,老实说,目前教程已经高度完善而且超级简单,如果你真的认真阅读了教程,动手跟着执行了每一个步骤,总共就4个步骤, 根本不会遇到任何问题,轻轻松松,一次成功。世间之事最怕 认真 二字。)
本超速科学上网教程:
就是可以科学上网
@kang000feng
kang000feng / zhHans.conf.ini
Created July 10, 2016 16:46 — forked from Blankwonder/zhHans.conf.ini
surge conf 配置详细说明
# 你可以从该 URL 下载这个配置文件: http://surge.run/config-example/ios.conf
# 用编辑器编辑后,再通过 iTunes, URL, AirDrop 或者 iCloud Drive 复制回 iOS 设备
# Version 2.0
[General]
# 日志等级: warning, notify, info, verbose (默认值: notify)
loglevel = notify
# 跳过某个域名或者 IP 段,这些目标主机将不会由 Surge Proxy 处理。(在 macOS
# 版本中,如果启用了 Set as System Proxy, 那么这些值会被写入到系统网络代理
# 设置中.)