Misc

MySQL search and replace

This is a simple SQL query to perform search and replace in a MySQL table update tablename set fieldname = replace(fieldname,’search_for_this’,’replace_with_this’);

Read More
Network

Network upgrade Ubuntu Server 8.04 to 8.10

This post describes how I upgraded my Ubuntu (Hardy Heron) 8.04 server installation to (Intrepid Ibex) 8.10 from the command line. First you’ll need to make sure you are running the latest packages # sudo aptitude update # sudo aptitude safe-upgrade Then you will need to install the Ubuntu upgrade package # sudo aptitude install […]

Read More
Linux

Howto copy a DVD-9 (dual-layer) movie in linux (fast)

More and more people are getting dual-layer DVD-burners and don’t want to compromise quality by shrinking the movie down to DVD-5 (singel-layer) copies. This howto will show you how to make a 1:1 (unshrinked and unencrypted) ISO-image of an encrypted DVD-9 movie in linux using the commandline. Prerequisites (these are likeley available in your distros […]

Read More
Linux

Rename files in a folder to lower-case using perl

This is a simple oneliner to rename files to lower-case using perl # perl -e ‘rename($_, lc) || warn “$_: $!\n” for @ARGV’ * You can also do this recusively using find and perl # find . -type f -exec perl -e ‘rename($_, lc) || warn “$_: $!\n” for @ARGV’ {} \;

Read More