sync with http://mths.be/osx