admin's blog
On Drupal 4.7.2!
The site is online with the new 4.7 Drupal version :)
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
done
Thanks Live from Yokohama
Creating and using Qemu for a virtual OS Installation
Create qemu virtual image file:
qemu-img create virt1 1G
On my laptop for some reasons, no cdrom boot was allowed for the virtual installation,
so the loopback device comes useful to do the installation:
dd if=/dev/cdrom of=sarge-netinst.iso
Now boot the new OS installation (I use Debian GNU/Linux for both real and virtual systems)
qemu virt1 -boot d -cdrom sarge-netinst.iso
Then boot the new system (root or sudoed, as you need root privileges for routing)
qemu virt1 -boot c -n /etc/qemu-ifup
A Grand Unified Theory of YouTube and MySpace (from Slashdot)
Ant writes "Paul Boutin's Slate article explains the factors contributing to the success YouTube and MySpace: they are easy to use (usability), and they don't 'tell you what to do.'" From the article: "Both YouTube and MySpace fit the textbook definition of Web 2.0, that hypothetical next-generation Internet where people contribute as easily as they consume.
Print all ANSI colors
(from http://wiki.splitbrain.org/shellsnippets)
for i in 30 31 32 33 34 35 36 37 39
do
for j in 40 41 42 43 44 45 46 47 49
do
# skip if same fore- and backgroundcolor
if [ $j -eq $[ i + 10 ] ]; then
continue
fi
echo -e $i $j "\033[${i};${j}mCOLOR\033[0m"
done
done

