Skip to content

Instantly share code, notes, and snippets.

View lukaszb's full-sized avatar

Lukasz Balcerzak lukaszb

  • Warsaw
View GitHub Profile

Setup Mac OS X Mountain Lion

I just replaced the hard drive of my mbp and decided to do a clean install of Mountain Lion (10.8.5) since I was still using Snow Leopard (10.6.8).

I kinda regret for not using Boxen to automate the process, but TBH I have this laptop for almost 3yrs and this is the first time I needed to reinstall everything, maybe the next time...

@lukaszb
lukaszb / gist:1007169
Created June 3, 2011 21:03
username & email extractor for VCS & RhodeCode
def author_email(author):
"""
returns email address of given author.
If any of <,> sign are found, it fallbacks to regex findall()
and returns first found result or empty string
Regex taken from http://www.regular-expressions.info/email.html
"""
import re
r = author.find('>')