DriveDroid is an Android application that allows you to boot your PC from ISO/IMG files stored on your phone.
Install it on your android phone and use it to boot any computer.
You can store any number of ISO/IMG files on your SD card.

Disable recent documents in Gtk2/Gtk3

Use the following to disable recent documents in Gtk2/Gtk3:

echo 'gtk-recent-files-max-age=0' | tee -a $HOME/.gtkrc-2.0
echo 'gtk-recent-files-max-age=0' | tee -a $HOME/.config/gtk-3.0/settings.ini

The ugly part is that there is no way one can disable ‘Recently Used’ in the GtkFileChooser dialog box.


Quick way to convert Mbox mailboxes to Maildir format

A quick way to convert Mbox mailboxes to Mbox format is to use mb2md.
Install it in Ubuntu/Debian using:

sudo aptitude install mb2md

To make the convertion use:

mb2md -m

From man:

       -m        If this is used then the source will be the single mailbox at /var/spool/mail/blah for user blah and the destination mail‐
                 box will be the "destdir" mailbox itself.

Nice and simple!

Bash script to backup my configs (dotfiles)

I needed some script to take care of my config files and put them in a single directory. So here it is.

# Display All Hidden Dot Files In a Directory
# ls -a | egrep "^\." >
DESTINATION="/storage/dotfiles"  # do not use a trailing slash (/)
# Colors
# file list (use trailing slash for directories)
for file in $FILES
   if [ -d $file ]; then
      mkdir -p $DESTINATION/$file
      cp -f $HOME/$file* $DESTINATION/$file
   elif [ -f $file ]; then
      cp -f $HOME/$file $DESTINATION
      echo -e "$red:: $file is not a file/directory! $reset"
echo -e "$green:: Done! $reset"
exit 0

Moved to ArchLinux!

Moved my ThinkPad T61 to ArchLinux! (Still using Ubuntu on many other machines.)

I will post some install script I used to configure my system.

Liferea custom stylesheet

I don’t like very much the default font used by Liferea, so I decided to use my custom font. Here is how:
1. Copy the default stylesheet to liferea folder in my $HOME:
cp /usr/share/liferea/css/liferea.css $HOME/.liferea_1.6
2. Add this:
* {
font-family: Aurulent Sans;
at [...] Continue Reading…

Ubuntu Kindle eBooks

Need some great Ubuntu eBooks to read on your Kindle? Look no further. Keir Thomas has some excellent guides for you.

Beautify SQL code

Recently I had the oportunity to test SQL Pretty Printer (Add-In for SSMS). I don’t have to waste time formatting long sql queries. In no time, SQL Pretty Printer does the job
for me. It can also translate the sql [...] Continue Reading…

Just installed Archlinux on my ThinkPad T61

archlinux, linux [...] Continue Reading…

Quick gnome tweaks

Here are some tweaks for your gnome:

Print all subdirectories and entries under a dir, recursively:

gconftool-2 -R /

Change GDM font:

sudo -u gdm gconftool-2 –set –type string \
/desktop/gnome/interface/document_font_name “Ubuntu”
sudo -u gdm gconftool-2 –set –type string \
/desktop/gnome/interface/font_name “Ubuntu”
sudo -u gdm gconftool-2 –set [...] Continue Reading…