» Shell Script to Check if Today is a Weekend


I have some shell scripts that will perform certain actions only on a weekend (Saturday or Sunday). There are two ways to solve the “is it a weekend” logic.

» Bypass 25 Likes Facebook Page Username Restriction


Facebook require pages to have at least 25 likes or fans to signup for a username, custom URL or Vanity URL. This means that newly created Facebook pages will come with a messy URL with a lot of numbers. This is bad news for newly launched companies as the URLs do not provide any brand recognition.

» Create a tar.gz File in a Single Command in Solaris


Solaris does not ship with the GNU tar and by default, the tar command in Solaris does not allow you to create gzip or bzip2 files, but only pure tarballs. You will need to create a tar file first and then compress the tarball with the gzip command.

» AES Encryption Tool


I have been looking for a tool to encrypt Ki values (into eKi) using AES encryption. Ki is a 128-bit value used in authenticating the SIMs on the mobile network.

» Generate Random Password on Linux


Linux has all the tools you need to generate a random password. This can be accomplished by a special file /dev/random, that serves as a random number generator.

» How to Safely Remove USB Mass Storage Device


When you click on the “Safely Remove Hardware” icon in the system tray to remove your USB thumbdrive, you may receive an error message saying that it is still in use and you may not be able to remove it successfully.

» How to Completely Wipe Hard Disk Contents


If you are planning to discard your old hard disk, make sure that they do not contain any valuable information when they head out of your door. The last thing on your mind is the potential of having your identity stolen from sensitive information stored in that hard disk.

» How to Decompile Java Classes


Java class files are compiled bytecode files that could be loaded and run on a JVM or a Java Virtual Machine. To generate a Java source file from a Java class file, you will need a Java decompiler.

» Change IP Address from the Command Prompt


Changing the IP settings from the Windows GUI is a no-brainer! I have never been a fan of using the GUI for system configuration. I change the network settings of the ethernet and wifi interfaces from the command line!

» How to Get the Home Directory of an User


To perform disk usage monitoring of users on a UNIX system, you will, first of all, need to determine the home directories of the users. You might ask, “Aren’t all the user home directories found under /home?”. Well, typically yes, but it’s not always true.