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.

My Cydia Repo Sources

Add in /etc/apt/sources.list.d/cydia.list:

deb http://apt.saurik.com/ ios/847.27 main
deb http://repo666.ultrasn0w.com/ ./
deb http://cydia.myrepospace.com/ilexinfo/ ./
deb http://cydia.zodttd.com/repo/cydia/ stable main
deb http://apt.xmodgames.com/ ./
deb http://repo.biteyourapple.net/ ./
deb http://repo.hackyouriphone.org/ ./
deb http://cydia.xsellize.com/ ./
deb http://sinfuliphonerepo.com/ ./
deb http://repo.insanelyi.com/ ./
deb http://apt.modmyi.com/ stable main
deb http://apt.pwncenter.com/ ./
deb http://apt.thebigboss.org/repofiles/cydia/ stable main

Ref for .debs: http://apt.saurik.com/debs/

iTunes: Move backup location to an external hard drive

I got a new MacBook Pro with a 256 GB SSD, so not enough storage to back up all of my family’s iOS devices, to say the least. The solution was to back up to an external HDD. Here’s how to do it:

1. With iTunes closed, open the terminal and cd to ~/Library/Application Support/MobileSync/
2. Delete or rename “Backup” folder within (i.e. rm -rf Backup or mv Backup BackupOld)
3. Create the symlink like so:


ln -s /Volumes/<Your External HDD>/MobileSync/Backup ~/Library/Application\ Support/MobileSync/Backup

4. Open iTunes and back up your device
5. Verify that it’s copied to ~/Library/Application\ Support/MobileSync/Backup
6. Enjoy free space on your MacBook

How to get admin access to Tomcat 7 on OS X Yosemite

In continuing the path to learn more about Tomcat 7, I had to configured my local instance to give me admin access to the “Server Status,” “Manager App,” and “Host Manager” pages.  It was actually quiet easy.

    1. In your terminal, go to /usr/local/Cellar/tomcat7/7.0.63/libexec/conf
    2. vim tomcat-users.xml
    3. Add the following:

    
      <role rolename="manager-gui"/>
      <role rolename="admin-gui"/>
      <user username="tomcat" password="s3cret" roles="manager-gui,admin-gui"/>