Tuesday, May 31, 2011

from MP4 to MP3

> ffmpeg -i video.mp4 -f mp3 -ab 192000 -vn music.mp3

Monday, May 30, 2011

Unison in Windows 7 64bit

Unison is a powerful file synchronization program, which works in Linux, Windows, and probably also Mac. Unison is a freeware.

1) install GTK 64bit runtime

"gtk2-runtime-2.22.0-2010-10-21-ash.exe" or higher

It can be found at http://sourceforge.net/projects/gtk-win

2) download and unzip Unison GUI client into a directory where you like to have Unison

http://alan.petitepomme.net/unison/assets/2010.10.15-Esup-Unison-Unison_GTK_2.40.61.zip

It can be found at http://alan.petitepomme.net/unison/index.html


Saturday, May 7, 2011

Edit "Open With"

If you want to delete applications from this list you have to edit the following file from command line

/usr/share/applications/mimeinfo.cache

If you added item by yourself, or you want to add new item you need to edit the following file from command line

~/.local/share/applications/mimeinfo.cache

deafault actions you need to edit the following file from command line

~/.local/share/applications/defaults.list

Delete Google-earth

> sudo su -
> cd /opt/google-earth/
> export DISPLAY=:0
> ./uninstall

Clean-up WINE menus

> rm -f $HOME/.config/menus/applications-merged/wine*
> rm -rf $HOME/.local/share/applications/wine
> rm -f $HOME/.local/share/desktop-directories/wine*
> rm -f $HOME/.local/share/icons/????_*.xpm