Skip to content

Instantly share code, notes, and snippets.

View qiujianzhong's full-sized avatar
🎯
Focusing

qiujianzhong qiujianzhong

🎯
Focusing
  • Shanghai
View GitHub Profile
@qiujianzhong
qiujianzhong / global-protect.sh
Last active October 20, 2017 02:00 — forked from kaleksandrov/global-protect.sh
Simple script that starts and stops GlobalProtect.app on Mac OSX.
#!/bin/bash
#sudo vim /usr/local/sbin/vpn
#sudo chmod +x /usr/local/sbin/vpn
#Usage vpn
num=`ps -ef|grep GlobalProtect|grep -v grep|wc -l|awk -F ' ' '{print $1}'`
case $# in
0)
@qiujianzhong
qiujianzhong / build-python-2.7.9.sh
Created March 2, 2017 15:05
upgrade Python 2.7.6 -> 2.7.9 on Ubuntu 14.04
#!/bin/sh
#
# Installs Python 2.7.9 on Ubuntu 14.04 to include security updates
# Run this script with superuser privileges.
#
BASEDEPS="build-essential python-pip"
BUILDDEPS="libbz2-dev \
libc6-dev \
libgdbm-dev \