Skip to content

Instantly share code, notes, and snippets.

View feng92f's full-sized avatar
💭
I may be slow to respond.

Frank feng92f

💭
I may be slow to respond.
View GitHub Profile
STEP1,下载软件
https://github.com/shadowsocks/ShadowsocksX-NG/releases/download/1.3.1/ShadowsocksX-NG-1.3.1.dmg
STEP2,打开下载的DMG文件,将程序图标拖到右边的APPLICATIONS,安装完成
STEP3,进入LAUNCHPAD,打开刚才安装的软件,右上方出现程序图标,点击图标--“服务器”--“打开服务器设定”
#!/bin/bash
# CentOS release 6.4
# https://www.digitalocean.com/community/articles/how-to-setup-your-own-vpn-with-pptp
rpm --import http://poptop.sourceforge.net/yum/RPM-GPG-KEY-PPTP
rpm -i http://poptop.sourceforge.net/yum/stable/rhel6/pptp-release-current.noarch.rpm
yum -y install pptpd
echo "localip 192.168.9.1" >> /etc/pptpd.conf
@feng92f
feng92f / largels
Created October 9, 2012 11:22
List largest files in current directory
ls -pRsh | sort -hr | head -10 | nawk -v a=$(pwd) '{print a"\t"$0
@feng92f
feng92f / i3
Created September 19, 2012 15:45
i3 config
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
#
# This config file uses keycodes (bindsym) and was written for the QWERTY
# layout.
#
# To get a config file with the same key positions, but for your current
# layout, use the i3-config-wizard
#
@feng92f
feng92f / js snippt
Created August 19, 2012 08:49
js snippt
hasher || (hasher = _.identity);
_.memoize = function(func, hasher) {
var memo = {};
hasher || (hasher = _.identity);
return function() {
var key = hasher.apply(this, arguments);//Good
return _.has(memo, key) ? memo[key] : (memo[key] = func.apply(this, arguments));
};
@feng92f
feng92f / timer.js
Created August 13, 2012 09:13
javascript timer
setTimeout(function(){
//code
setTimeout(arguments.callee,1000);
});
@feng92f
feng92f / gist:2849163
Created June 1, 2012 05:37 — forked from zythum/gist:2848881
google收录的敏感词