Skip to content

Instantly share code, notes, and snippets.

View weiofcn's full-sized avatar

Zhou Wei weiofcn

View GitHub Profile

测试平台:DigitalOcean VPS ubuntu14.04 x64, strongswan5.2.2

运行以下命令请使用root权限

一:安装strongswan

由于ubuntu软件仓库中strongswan版本较低,因此从官网源码编译安装

apt-get install build-essential     #编译环境
aptitude install libgmp10 libgmp3-dev libssl-dev pkg-config libpcsclite-dev libpam0g-dev     #编译所需要的软件
@weiofcn
weiofcn / trial.key
Created July 13, 2017 09:31 — forked from huqi/trial.key
Beyond Compare 4 license for Mac
Beyond Compare 4
Licensed to: ASIO Allsoftinone
Quantity: 1 user
Serial number: 1822-9597
License type: Pro Edition for Windows
--- BEGIN LICENSE KEY ---
H1bJTd2SauPv5Garuaq0Ig43uqq5NJOEw94wxdZTpU-pFB9GmyPk677gJ
vC1Ro6sbAvKR4pVwtxdCfuoZDb6hJ5bVQKqlfihJfSYZt-xVrVU27+0Ja
hFbqTmYskatMTgPyjvv99CF2Te8ec+Ys2SPxyZAF0YwOCNOWmsyqN5y9t
@weiofcn
weiofcn / git_toturial
Created July 13, 2017 09:32 — forked from huqi/git_toturial
git toturial
git init # 初始化本地git仓库(创建新仓库)
git config --global user.name "xxx" # 配置用户名
git config --global user.email "xxx@xxx.com" # 配置邮件
git config --global color.ui true # git status等命令自动着色
git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global --unset http.proxy # remove proxy configuration on git
git clone git+ssh://git@192.168.53.168/VT.git # clone远程仓库
@weiofcn
weiofcn / amqpconsumer
Created March 18, 2019 07:42 — forked from pat1/amqpconsumer
pika bug
import logging
import pika
import time
LOG_FORMAT = ('%(levelname) -1s %(asctime)s %(name) -1s %(funcName) '
'-1s %(lineno) -5d: %(message)s')
LOGGER = logging.getLogger(__name__)
user="user"