基于东哥 Cisco IPsec/IKEv2 VPN 与 dnsmasq
VPN 直接下载 mac/ios 配置文件并导入即可一键连接,下面只讨论如何分流
####安装 dnsmasq 并配置
brew update && brew install dnsmasq
并按提示完成(此处略)
添加下文至 /usr/local/etc/dnsmasq.conf
基于东哥 Cisco IPsec/IKEv2 VPN 与 dnsmasq
VPN 直接下载 mac/ios 配置文件并导入即可一键连接,下面只讨论如何分流
####安装 dnsmasq 并配置
brew update && brew install dnsmasq
并按提示完成(此处略)
添加下文至 /usr/local/etc/dnsmasq.conf
# Basic Strongswan ikev2 server setup | |
* paltform: atlantic.net ubuntu 14.04 x64 | |
* the commands below are run with root account | |
## Strongswan | |
``` | |
apt-get install strongswan | |
apt-get install iptables iptables-persistent | |
``` |
# http://aacable.wordpress.com/tag/squid-maximum-cache-hit/ | |
# https://calomel.org/squid_adservers.html | |
http_port 192.168.3.254:3128 | |
http_port 10.0.0.253:3128 | |
http_port 127.0.0.1:3128 intercept | |
icp_port 7 | |
dns_v4_first off | |
pid_filename /var/run/squid.pid | |
cache_effective_user proxy |
<?php | |
/* | |
Plugin Name: Remove WP Meta | |
Plugin URI: http://leekelleher.com/ | |
Description: This plugin removes the auto-generated WP meta tags from each webpage. | |
Author: Lee Kelleher | |
Version: 0.1.0 | |
Author URI: http://leekelleher.com/ | |
*/ |
#!/bin/sh | |
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
# CREATE block and create them in separate commands _after_ all the INSERTs. | |
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
# The mysqldump file is traversed only once. | |
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |