Temporarily Clearing Bash Environment Variables

At times I’d just like to run a script or a program without using my current or pre-existing shell environment variables. Running bash -l doesn’t really help because it just starts a new bash shell login with the same environment variables from your ~/.bashrc or profile.d system-wide settings. Well, the other day I discovered prefixing your program/script with env temporarily clears your environment variables so that your script just runs with totally no variables!

GPG Subkeys

OpenPGP supports subkeys which are like the normal keys, except they’re bound to a master key pair. A subkey can be used for signing or for encryption. The really useful part of subkeys is that they can be revoked independently of the master keys, and also stored separately from them.

Enabling MySQL Binary Logs

MySQL binary log contains records of all changes to a databases—both data & structure—as well as how long each statement took to execute. It logs SQL statements such as CREATE, ALTER, INSERT, UPDATE & DELETE with the exception of SELECT & SHOW which have no effect on the data.