Skip to content

Instantly share code, notes, and snippets.

@laoyang945
laoyang945 / pptpd.sh
Last active December 16, 2015 04:19 — forked from yinhm/pptpd.sh
# Automaticlly install pptpd on Amazon EC2 Amazon Linux
#
# Ripped from http://blog.diahosting.com/linux-tutorial/pptpd/
# pptpd source rpm packing by it's authors
#
# WARNING:
# first ms-dns setting to 172.16.0.23, 172.16.0.23 was showing on my
# /etc/resolv.conf, I'm not sure this is the same on all Amazon AWS zones.
#
# You need to adjust your "Security Groups" which you are using too.
@laoyang945
laoyang945 / 姐夫和姐姐
Created September 29, 2012 14:50
超感人励志文
姐姐不是亲姐姐,是小时候经常一起玩的姐姐,姐夫是她的大学同学,姐夫以前在英国读书,后来转学来了美国,相识相恋,后来被姐姐的家长拆散。
当年的姐夫成绩平平,能力平平,长相平平,家境更是连 平平 都不如。他父亲收入很低,母亲更是半途辞职,他一直靠全额奖学金读书。
姐姐的妈妈安排好了工作让她回家,无论如何也不让姐姐和这样的男人在一起。
女方家长总说姐夫的父母不安分,有可能出事,而且连累女方家族,成为负担,必须分手,于是他们提前半年分手了。
也是,本就没有未来的两个人,何必要耽搁彼此的时间,还不如一刀两断,从此寻找自己的幸福。
三年过去了,两人很少联系,更是没有见面,只是生日时,姐姐会收到姐夫寄过来的礼物,情人节时,姐夫会在网上订花送到姐姐办公室。
@laoyang945
laoyang945 / gist:1504437
Created December 21, 2011 03:34 — forked from ikbear/gist:1274521
Octopress Wordpress converter
require 'fileutils'
require 'date'
require 'yaml'
require 'rexml/document'
require 'ya2yaml'
include REXML
doc = Document.new(File.new(ARGV[0]))