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.
Nice!
Author Archives: cviorel - Page 3
DriveDroid
Disable recent documents in Gtk2/Gtk3
Use the following to disable recent documents in Gtk2/Gtk3:
1 2 |
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:
1 |
sudo aptitude install mb2md |
To make the convertion use:
1 |
mb2md -m |
From man:
1 2 |
-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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
#!/bin/bash # Display All Hidden Dot Files In a Directory # ls -a | egrep "^\." > backup_dotfiles.sh DESTINATION="/storage/dotfiles" # do not use a trailing slash (/) # Colors blue="\e[0;34m" green="\e[1;32m" red="\e[0;31m" bold="\e[1;30m" reset="\e[0m" # file list (use trailing slash for directories) FILES=" .bash_aliases .bash_logout .bash_profile .bashrc .colours/ .config/openbox/ .config/terminator/ .config/tint2/ .config/zathura/ .devilspie/ .fehbg .fonts.conf .gtk-bookmarks .gtkrc-2.0 .gtkrc-2.0.mine .inputrc .mplayer/ .nanorc .rtorrent.rc .screenrc .synergy.conf .vim/colors/ .vimrc .xbindkeysrc .Xdefaults .xinitrc .xmod .Xmodmap .xsession .xxkb/ .xxkbrc " for file in $FILES do if [ -d $file ]; then mkdir -p $DESTINATION/$file cp -f $HOME/$file* $DESTINATION/$file elif [ -f $file ]; then cp -f $HOME/$file $DESTINATION else echo -e "$red:: $file is not a file/directory! $reset" fi done echo -e "$green:: Done! $reset" exit 0 |
Moved to ArchLinux!
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:
1 |
cp /usr/share/liferea/css/liferea.css $HOME/.liferea_1.6 |
2. Add this:
1 2 3 |
{ font-family: Aurulent Sans; } |
at the begining of liferea.css file.
Of course, you can also play with all the other options in the liferea.css.
Have fun!
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 code into C#, Java, Php and many other program languages so I can use it in my own programs.
SQL Pretty printer is designed to deal with SQL statement used by different Database Such as MSSQL, Oracle, DB2, Informix, Sybase, Postgres, MySQL and so on. The code conforms to most of the entry-level SQL99 Standard.
To use this add-in you need to have SQL Server Management Studio (SSMS), with .NET2.0 installed. In sql editor you can use shortcut key (ctrl+k,ctrl+j for all sqls, and ctrl+k, ctrl+h for selected sql). There is also a toolbar with two buttons to format sql or selected sql.
To see it in action, take a look here, where you have some sample code blocks before and after the formatting.
Just installed Archlinux on my ThinkPad T61
I’ve installed Archlinux on my ThinkPad T61 about a week ago and so far I am impressed.
I will post more info about the tweaks and customisations I’ve done to make everything work.
Check out the screenshots page.
Quick gnome tweaks
Here are some tweaks for your gnome:
Print all subdirectories and entries under a dir, recursively:
1 |
gconftool-2 -R / |
Change GDM font:
1 2 3 4 5 6 |
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 --type string \ /desktop/gnome/interface/monospace_font_name "Monospace" |
Change GDM backgound:
1 2 |
sudo -u gdm gconftool-2 --set --type string \ /desktop/gnome/background/picture_filename "/path/to_image" |