Skip to content

Instantly share code, notes, and snippets.

# Apr 22, 2018 at 22:07
[General]
// Auto
loglevel = notify
dns-server = system,1.2.4.8,80.80.80.80,80.80.81.81,1.1.1.1,1.0.0.1
skip-proxy = 127.0.0.1,192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,100.64.0.0/10,17.0.0.0/8,localhost,*.local,*.crashlytics.com
// iOS
external-controller-access = [email protected]:6170
@lj0014
lj0014 / no-route.txt
Created June 29, 2015 11:47
ocserv no route
no-route = 1.160.0.0/255.224.0.0
no-route = 1.192.0.0/255.224.0.0
no-route = 14.0.0.0/255.224.0.0
no-route = 14.96.0.0/255.224.0.0
no-route = 14.128.0.0/255.224.0.0
no-route = 14.192.0.0/255.224.0.0
no-route = 27.0.0.0/255.192.0.0
no-route = 27.96.0.0/255.224.0.0
no-route = 27.128.0.0/255.128.0.0
no-route = 36.0.0.0/255.192.0.0
@lj0014
lj0014 / ocservd.sh
Created June 29, 2015 09:29
ocserv script
#!/bin/bash
function stop
{
progress_key=$1
ps -ef | grep $progress_key | grep -v grep | awk '{print $2}' | xargs -i kill -9 {}
}
function start
{
@lj0014
lj0014 / install_ocserv.sh
Last active March 6, 2017 11:42
install ocserv in ubuntu
#install deps
apt-get update
apt-get install -y gnutls-bin iptables libnl-route-3-200 libseccomp2 libwrap0 openssl curl --no-install-recommends
buildDeps=" \
autoconf \
autogen \
ca-certificates \
gcc \
gperf \
libgnutls28-dev \
Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 2 column 1
---
# Python 简介
@su27 and @menghan
---

What is Python?

Python: 优雅而健壮的编程语言

  • 高级

  • 易学易读易维护