Enable root in OS X Yosemite and El Capitan

I needed to do some file moving between users and noticed my admin account didn’t have access, so I tried “su” and “sudo” without success. Apparently, like it Yosemite, root access is disabled by default. Here’s how to enable it:


1. Open Directory Utility (I usually do it via CMD + spacebar, then type "dire")
2. Go to the Edit menu and select "Enable Root User".
3. Enter your desired root password twice.
4. That's it!

Test it out in the terminal by doing:


$ su -

Happy rooting, yo!

Homebrew: How to install on OS X

Since moving to OS X in 2011/2012 for work to do all my development, I’ve moved Homebrew to a must-have. Adding it here for archiving purposes.

From a terminal:


1. /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2. brew tap caskroom/cask

The 2nd point is to install Homebrew Cask as well, which extends Homebrew’s functionality.

Now get brewing!

iOS: Remove broken and already-removed apps in Cydia Installed list

In case you installed a misbehaving app via Cydia, manually removed it using iFile or Filza, but can’t seem to remove it from the “Installed” list/section, here’s what you can do:

1. Using your preferred file manager — in my case, Filza — navigate to “/var/lib/dpkg/status”
2. View the app with “Text Editor”
3. Click anywhere inside the text, and click on “Edit” on the top-right
4. Search for “My3G” and delete the whole section (i.e. com.sull…)
5. Save and reboot your phone (not really needed, but it “feels” cleaner)

That’s it! Enjoy your jailbroken phone once again.