Skip to content

Instantly share code, notes, and snippets.

@evindu
evindu / open_current_safari_tab_in_chrome.scpt
Last active September 25, 2018 01:21
open current safari tab in chrome.scpt
tell application "Safari"
set the_url to the URL of current tab in the front window
tell application "Google Chrome" to open location the_url
end tell
@evindu
evindu / ss-install.md
Created March 2, 2016 05:36 — forked from aa65535/ss-install.md
shadowsocks-libev install at Debian or CentOS

Debian

cd /tmp
# 下载源码
git clone https://github.com/madeye/shadowsocks-libev.git
# 开始编译
cd shadowsocks-libev
./autogen.sh
./configure --prefix=/usr && make
make install

测试平台: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     #编译所需要的软件