Get meminfo in GB / MB in stead of KB only

Get meminfo in GB / MB in stead of KB only published on No Comments on Get meminfo in GB / MB in stead of KB only

This will convert any kB lines to MB: awk ‘$3==”kB”{$2=$2/1024;$3=”MB”} 1’ /proc/meminfo | column -t This version converts to gigabytes: awk ‘$3==”kB”{$2=$2/1024**2;$3=”GB”;} 1’ /proc/meminfo | column -t For completeness, this will convert to MB or GB as appropriate: awk ‘$3==”kB”{if ($2>1024**2){$2=$2/1024**2;$3=”GB”;} else if ($2>1024){$2=$2/1024;$3=”MB”;}} 1′ /proc/meminfo | column -t I’ve used the following command in… Continue reading Get meminfo in GB / MB in stead of KB only

Convert mkv 2 m4v

Convert mkv 2 m4v published on No Comments on Convert mkv 2 m4v

How to convert HD video to ipod/ipad/iphone compatible format You have lots of nice movies in matroska (mkv) format but want to take them on your trip in your iPhone but don’t know how. Solution Use Handbrake commandline utility. After quite a bit of trial and error I think I’ve found a good combination between… Continue reading Convert mkv 2 m4v