Skip to content

Instantly share code, notes, and snippets.

View bmaeser's full-sized avatar

Bernhard Mäser bmaeser

View GitHub Profile
@JoshuaEstes
JoshuaEstes / 000-Cheat-Sheets.md
Last active April 23, 2025 10:31
Developer Cheat Sheets for bash, git, gpg, irssi, mutt, tmux, and vim. See my dotfiles repository for extra info.
@madrobby
madrobby / freckle_time_test.rb
Created October 25, 2011 15:45
Freckle accepted time formats (in API)
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')
@pithyless
pithyless / gist:1208841
Created September 10, 2011 21:49
Install Python 2.7 (homebrew + pip + virtualenv) on Mac OS X Lion

Install Python

$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7

Symlinks...

@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@mallipeddi
mallipeddi / README
Created November 18, 2010 12:13
OpenVPN setup - server on Ubuntu & Tunnelblick on OS X (Snow Leopard)
# 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