Samsung Galaxy Mini 2 (S6500D) recovery steps

I accidentally allowed for a samsung software update on my rooted galaxy mini 2.  After that, it wouldn’t boot.

I’ll write up more detailed instructions but this article was basically how I was able to recover it.

1) Download and install the USB driver for the S6500D

1.1) Download and install ODIN 1.85 –

1.2) Download the stock firmware for the S6500D –

2) Boot the phone into download mode.  Make sure it isn’t plugged into the computer, turn off the phone.  Then press and hold the down volume + ok button + power button until you see a screen that warns you about downloading images and asks you if you want to proceed to press the up volume key.  Do so now (and you can let go of those other three keys as soon as you get to that warning screen).

3) Connect your phone to the computer and start Odin v. 1.85 on your PC.  Odin is used to download firmware to android devices.

4) Make sure ODIN can see your phone.  You may have to reboot your PC after installing the USB drivers.

5) In Odin, chose the PDA button and select the tar.md5 stock firmware file you downloaded in step 1.2 above.

6) Push the “start” button in Odin and wait.  Make sure Odin reports success and a green box appears in Odin.  Your phone should automatically reboot itself and be working again.

After recovery you’ll have to re-root the phone following these steps

iptables: Unknown error 18446744073709551615

After a recent VPS upgrade to the container by my provider I noticed that anytime I attempted to add a simple iptables rule (e.g.

The cause of this error was exceeding a new limit that my provider imposed on the VPS containers to cap the rule count.  I had a lot of rules and when I reduced them to be within the value set in numiptent I was again able to add rules to iptables without errors.

I’m running CentOS – here is how you can check to see the limits and current values of the numiptent settings.

cat /proc/user_beancounters | grep numiptent

Output will be in the format

resource held maxheld barrier limit failcnt

How to convert FLAC to MP3

FLAC stands for Free Lossless Audio Codec and you can read more about this audio file format here:

Want to convert your flac files to mp3?  Here is a simple bash script that will do the trick for you.