Skip to content

Instantly share code, notes, and snippets.

View realmirai's full-sized avatar
⚠️
redacted

A.F. realmirai

⚠️
redacted
  • Shanghai, China
View GitHub Profile

Keybase proof

I hereby claim:

  • I am realmirai on github.
  • I am haketa (https://keybase.io/haketa) on keybase.
  • I have a public key ASBoad0UT95V10uCXeszNMSnGaXggBkZW34FoUbSx6pnHAo

To claim this, I am signing this object:

@realmirai
realmirai / lsmg
Last active August 26, 2017 14:38 — forked from MichaelRix/lsmg
Shadowsocks-libev with simple-obfs script
#!/usr/bin/env bash
function check_env() {
libev_ver=$(ss-local -h | grep "shadowsocks-libev")
[ -z "$libev_ver" ] && echo "[Error] Cannot find shadowsocks-libev" && exit 1
obfs_ver=$(obfs-local -h | grep "simple-obfs")
}
function get_pid() {
pid=$(ps -x | grep "/tmp/ss-local.pid" | grep "ss-local -c" | grep -oP '^\s*\d+' | grep -oP '\d+')