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
require File.expand_path('../../test_helper', __FILE__) | |
describe Freckle::Time do | |
it "should parse hh:mm" do | |
assert_equal 15, Freckle::Time.parse(':15') | |
assert_equal 15, Freckle::Time.parse('0:15') | |
assert_equal 60, Freckle::Time.parse('1:00') | |
assert_equal 60, Freckle::Time.parse('01:00') | |
assert_equal 660, Freckle::Time.parse('11:00') | |
assert_equal 150, Freckle::Time.parse('2:30') |
Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
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
# install openvpn | |
sudo apt-get install -y openvpn | |
# NAT 192.168.99.1/2 subnet <-> eth0 (interface on server) | |
sudo modprobe iptable_nat | |
echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward | |
sudo iptables -t nat -A POSTROUTING -s 192.168.99.1/2 -o eth0 -j MASQUERADE | |
# generate secret key; scp this key to the client later |
NewerOlder