yum install ppp iptables
rpm -Uvh http://poptop.sourceforge.net/yum/stable/rhel6/pptp-release-current.noarch.rpm
yum install pptpd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Parent = Backbone.Model.extend({ | |
| age : 3, | |
| ref: [] | |
| }); | |
| var Child1 = Parent.extend(), | |
| Child2 = Parent.extend(); | |
| var c1 = new Child1(), | |
| c2 = new Child2(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Main where | |
| import Control.Monad.Trans.State.Lazy | |
| -- | The state | |
| type S = String | |
| sayHello :: S -> S | |
| sayHello = (++ "Hello, ") |
sudo apt-get install xmonad suckless-tools gmrun xmobar
sudo apt-get install lxappearance ttf-liberation ttf-mscorefonts-installer
- http://paddymullen.com/2010/01/17/xmonad-on-ubuntu/
- http://www.howtogeek.com/114728/how-to-use-xmonad-a-tiling-window-manager-for-linux/
- http://askubuntu.com/questions/129697/correct-way-to-get-a-nice-gtk-theme
- http://karuppuswamy.com/wordpress/2011/09/03/how-to-get-a-productive-desktop-based-on-xmonad-and-xmobar/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Sample config for setting nginx as a gateway to local services. | |
| upstream demosnap { | |
| server localhost:9898; | |
| server localhost:8080; | |
| } | |
| server { | |
| listen 80; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Main where | |
| main = do let p = Position 0 | |
| print (treasureMap p == treasureMap2 p) | |
| data Position t = Position t deriving (Show, Eq) | |
| stagger (Position d) = Position (d + 2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
| <!-- <script type="text/javascript" src="/home/haiswu/Downloads/jquery-1.7.1.js"></script> --> | |
| <style> | |
| form div label { | |
| width: 100px; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| jsclass | |
| http://jsclass.jcoglan.com/ | |
| npm install jsclass | |
| */ | |
| require('jsclass'); | |
| JS.require('JS.Deferrable'); | |
| Promise = new JS.Class({ | |
| include: JS.Deferrable, |
NewerOlder