Increasing Amazon Linux 2 AMI /tmp Size

cd # change to your home directory fallocate -l 20G mydrive.img # create the virtual drive file mkfs -t ext3 mydrive.img # format the virtual drive sudo umount /tmp # unmount the /tmp sudo mount -t auto -o loop mydrive.img /tmp # mount the virtual drive  

Setup scrot on Fedora with manual installation

Scrot is a quite popular command line tool and one of the swiss army tools sysadmin need to have. When I’m not be able to install it via the repository, this is what I did to make it work : $ wget http://mirror.ghettoforge.org/distributions/gf/el/7/gf/x86_64/giblib-1.2.4-27.gf.el7.x86_64.rpm $ wget http://packages.psychotic.ninja/7/base/x86_64/RPMS/scrot-0.8-12.el7.psychotic.x86_64.rpm $ sudo rpm -i giblib-1.2.4-27.gf.el7.x86_64.rpm $ sudo rpm -i … Read more

Run bash terminal inside VIM with Conque-Shell

This is one of the coolest trick I’ve ever seen when working with VIM. This plugin allows you to run the bash terminal inside the VIM. And you can actually make it a spitted pane within your VIM work space. Check out this plugin: How to install conque-shell: Open vim config: vim ~/.vimrc call plug#begin(‘~/.vim/plugged’) … Read more