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

How To Get Samsung LED TV PVR Recording as MKV

How To Get Samsung LED TV PVR Recording as MKV published on 4 Comments on How To Get Samsung LED TV PVR Recording as MKV

Challenge You have recording(s) made with your Samsung LED TV on a harddisk and you want to keep them as Matroska (mkv) files. Prerequisites Linux (I use ubuntu so you might have to do some substitutions) git (apt-get install git) (lots of) space Solution We need to do: * Mount the Samsung LED TV formatted… Continue reading How To Get Samsung LED TV PVR Recording as MKV