Writing
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/…
IntelliJ IDEA: Create JUnit Test method code snippet shortcut
I’ve been using IntelliJ over Eclipse for a while now, mainly because it feels newer and more tuned to develop with Maven-based projects. This is just me. Anyway, if you do TDD, you’ll want to take advantage of IntelliJ’s Live Templates. In this post, I’m writing about adding JUnit test code snippets, like so: @Test…
Git cheat sheet
This is a post-in-progress. To revert local commit: git reset HEAD~1 To see what is about to be pushed: git diff –stat –cached origin/master To add to ignored files: git update-index –assume-unchanged <files to ignore> Useful commands: git status git log
IntelliJ IDEA: Getting “Fetch failed. Fatal: Could not read from remote repository”
In case you encounter this issue, do the following: 1. Preferences > SSH 2. Make sure SSH executable is set to “Native.” (If already so, switch to “Built-in,” apply it, then switch back to “Native.”) 3. Happy fetching!
Git: Create a duplicate branch of master
I worked on upgrading a web service from JDK 1.6 to JDK 1.8 and was successful (that’s something I need to write a post on); however, I wanted to make sure I could revert back to pre-1.8 in case it breaks in production. The solution was to create a clone or duplicate of master before…