IT notes

extent

To resize an image and adjust it to fit a fixed canvas with transparent background: $ convert in.png \ -resize 128x128 \ -background none \ -gravity center \ -extent 128x128 \ out.png

debian parted

Resize AWS Debian Jessie Probably instance will have 8GB, to extend the disk, for example to 40GB do this: Install parted: $ apt-get install parted Run: $ /sbin/parted ---pretend-input-tty /dev/xvda resizepart 1 yes 100% Resize2fs: $ resize2fs /dev/xvda1 Run lsblk: [email protected]:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT xvda 202:0 0 40G 0 disk `-xvda1 202:1 0 40G 0 part /