How to Resize Multiple Images at Once
mogrify *.jpg -scale 50% *
mogrify *.jpg -scale 50% *
If you are working with your server, ex: sending some file now and then with SSH, you can experience some annoying connection losses. Actually, if SSH has been idle for a while the connection will be closed.
You can prevent this easily adding a config file with just 2 lines of code to your .ssh folder in your home.
nano ~/.ssh/config
Host *
ServerAliveInterval 30
Note: in Ubuntu TCPKeepAlive is active by default.
Make things easy with package n.
n latest
If you want to test your app with different times you don’t need to change your computer time (what can lead to unexpected consequences), instead you can simple open a terminal and launch your app with faketime.
faketime -f "@2049-01-11 17:50:00" firefox
sed -e 's/^/~/' -e ': r' -e 's/^\( *\)~ /\1 ~/' -e 't r' -e 's/~//' -i *