In the need for a quick pipeline to encrypt and decrypt data, gpg can be quite handy, for example it can be used in this way to encrypt some backup before transferring it to a third part hosted storage:
cat backupfile.tgz | gpg -c –cipher-algo=BLOWFISH > backupfile.tgz.gpg
(you’ll be asked for the Passphrase to use for encryption)
and [...]
Continue reading about Quick data pipeline for encryption and decryption
To clear the whole Postfix mail queue you can use this command:
~# for i in `mailq|grep ‘@’ |awk {’print $1′}|grep -v ‘@’`; do postsuper -d $i ; done
Thomas Sewell from coolsewell.com contributed with this helpful notes:
you could also just do:
postsuper -d ALL
to clear all mail queues or even
postsuper -d ALL deferred
to just get rid of [...]
Sometimes a backup is needed but the server storage is not enough, in this case you must backup your data on the fly via the net, without the facility of storing locally and then transfer the data.
There are many methods to backup your data on the fly, using rsync via ssh is one for example, [...]
Put the following little snippet in your .bashrc/.bash_profile and you’ll have a handy little calculator:
? () { echo “$*” | bc -l; }
Use like this:
bash$ ? 2*2
4
Thanks textsnippets.com
export COLUMNS=150

