Category: Apple
Scheduling a task on OS X Lion
After looking through a number of sources on how to schedule a task on OS X Lion, I found out using launchd was the best option, as it will run a missed task as soon as the computer turns on (unlike cron). Things you’ll need to setup: 1. Create a plist and place it in…
Change hostname in OS X
From the terminal: sudo scutil –set HostName new_hostname.local. UPDATE: See Change computer name in OS X Yosemite instead.
Zip and password-protect any file via OS X’s Terminal
Pretty simple — just do the following: Open Terminal (Applications > Utilities > Terminal) CD to the directory with the file(s) to zip and password-protect Type the following and wait: “zip -e archive.zip file1 file2” Note: I zipped my iPhoto Library, so I did “zip -re photos.zip Pictures/”. The -r means recursive.
Free PDF to mobi or epub converter
I have a Kindle and love it, so archiving and sharing this awesome app. Cool thing is it’s available on multiple platforms. “calibre is a free and open source e-book library management application developed by users of e-books for users of e-books. It has a cornucopia of features divided into the following main categories.”
Reset MySQL Password on OS X Lion
In case you forgot or didn’t set the password for “root,” do the following: 1. Create a file called mysql-init with the following entries (I placed mine in my home directory): UPDATE mysql.user SET Password=PASSWORD(‘MyNewPass’) WHERE User=’root’; FLUSH PRIVILEGES; 2. Make sure mysqld is not running (i.e. terminal > ps -ef | grep mysql) 3.…
Uninstall HomeBrew on OS X Lion
In the terminal: cd `brew —-prefix` rm -rf Cellar brew prune rm -rf Library .git .gitignore bin/brew README.md share/man/man1/brew rm -rf ~/Library/Caches/Homebrew