admin on April 29th, 2009

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 [...]

Continue reading about Quick data pipeline for encryption and decryption

admin on April 21st, 2009

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 [...]

Continue reading about Clear the whole Postfix mail queue

admin on April 21st, 2009

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 [...]

Continue reading about Quick System Backup via Netcat

admin on August 21st, 2008

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

Continue reading about Simple bash calculator

admin on August 21st, 2008

export COLUMNS=150

Continue reading about Column width in bash environment