Mac OS X (5)


Recursively counting files in a directory

find . -maxdepth 1 -type d -print0 | xargs -0 -I {} sh -c ‘echo $(find “{}” | wc -l) “{}”‘ | sort -n

Read more...



Setting up MySQL on Mac OS

A few notes for next time… and this may help someone else you never know! Even after doing this multiple times it’s easy to forget a step and wonder why things aren’t working. After moving all my data to a new mac, i need to install mysql. Install mysql. (Grab a .dmg from mysql.com) Move […]

Read more...



configure sendmail on mac os x

Unable to send email using PHP mail()? Learn how to configure sendmail on mac os x… Open up /etc/php.ini and set the sendmail_path: [code] sendmail_path = "/usr/sbin/sendmail -t -i" [/code] then restart apache: [code] apachectl restart [/code] if you try sendmail… [code]sendmail[/code] you will get an error: [code] sendmail: fatal: chdir /Library/Server/Mail/Data/spool: No such file […]

Read more...



Mac OS X: Disabled Font Smoothing Threshold

[code]defaults write .GlobalPreferences AppleAntiAliasingThreshold 200[/code]

Read more...



Mac OS X: Disable Font Smoothing / Aliasing

[code]defaults write CoreGraphics CGFontDisableAntialiasing YES[/code]

Read more...