The only Zen you find on top of mountains
is the Zen you bring there.
USB Stick GNU/Linux mini howto with Fix for "Boot error" Buggy BIOSes
I was reading some articles around the web about how building your persistent GNU/Linux system on usb stick, I found many howtos but I had problems with my BIOS.
Clear the whole Postfix mail queue
~# for i in `mailq|grep '@' |awk {'print $1'}|grep -v '@'`; do postsuper -d $i ; doneThomas Sewell from coolsewell.com contributed with this helpful notes:
Split big files for editing
If you need to edit a big file, for example a mysql full dump for recover a single database, and your editor, for example emacs, say
something like "Maximum buffer size exceeded" you can split it in many smaller files.
~$ split -b 100m ORIGINAL_BIG_FILE OUTPUT_FILE_NAMEOutput files will be:
OUTPUT_FILE_NAMEaa
OUTPUT_FILE_NAMEab
OUTPUT_FILE_NAMEac
and on ... every one 100MB weight.
Then you can edit and just keep your DB for restore.
How do you rename files with a certain pattern in bash?
How do you rename files with a certain pattern in bash?
for i in *ABC*
do
new=$ ( echo $i | sed ’s/ABC/DEF/’ )
mv $i $new
doneThanks Live from Yokohama

