vim mappings for multiple files.

2012-08-06 1 min read Vim Tips
If you open multiple files in vim with command line option. Then the only way to move between the files is “:n” and “:N”. There is a easier way to do this. Just add mappings for this in vimrc. Here is what you can use. map :N map :n And if you want to make sure that you move to the prev or next file after saving the file, then you modifyt the mapping like this: Continue reading

rpmconf – Tool to handle rpmsave and rpmnew files

2012-06-18 1 min read bash Fedora
Install the utility: sudo yum install rpmconf Description: Description : This tool search for .rpmnew, .rpmsave and .rpmorig files and ask you what to do with them: Keep current version, place back old version, watch the diff or merge. And finally run the utility: sudo rpmconf -a and if there is a conflict or rpmsave or rpmnew file, then you will see something like this: Configuration file `/etc/default/grub’ -rw-r–r– 1 root root 354 Mar 16 22:49 /etc/default/grub. Continue reading

qemu manager for Windows to run your linux distribution

2011-12-22 1 min read Uncategorized
If you are into virtualization, then you must have heard about Qemu. And if you are on windows then this is a must: http://www.davereyn.co.uk/download.htm Related articles Political Hotsheet Herman Cain drops out 1 of 9 – CBS News (cbsnews.com) Romney, Gingrich Proceed Carefully in GOP Showdown – ABC News (abcnews.go.com) Wisconsin rallies to beat Michigan State in Big Ten title game – Chicago Tribune (chicagotribune.com)

quadkonsole – multiple consoles to make your life easier

2011-11-21 1 min read Fedora Linux
First lets install quadkonsole: yum install quadkonsole Now, to launch the quadkonsole, just type quadkonsole in the run box (appears with Alt+F2). You will by default see 4 console windows in single window but you can change that with command line options like so: quadkonsole --rows 4 --columns 4 This will initiate windows with 16 consoles. How cool is that. Related articles Console Lets You Work In Windows Command Line Mode With Style (makeuseof. Continue reading

Compare files excluding certain lines.

2011-10-18 1 min read bash Fedora Learning Linux
Quick tip, you can use any expression for the sed commands in the (). With this trick you can redirect the stdout of 2 commands to the diff command. This might become very useful, if you want to compare 2 files, excluding the first line. diff <(sed '1d' file) <(sed '1d' file2) More interesting example is where the string ABC is converted to abc before comparing in the second file with the following command: Continue reading

Gnome 3 shell themes

2011-08-12 2 min read Fedora Gnome
Image by grantc via Flickr If you are using gnome-shell and are bored with the same default theme then read on…. 🙂 By default changing the default theme requires that you modify the files yourself or copy few files to the required directories. Well, if this is not in your scheme of things for changing the theme, a very simple task. Now, you can simply do this with gnome shell extensions. Continue reading

Take a screenshot of the window the user clicks on and name the file the same as the window title

2010-12-19 2 min read bash Learning Photo
Take a screenshot of the window the user clicks on and name the file the same as the window title 1 <td> <div class="text codecolorer"> &nbsp;sleep 4; xwd >foo.xwd; mv foo.xwd "$(dd skip=100 if=foo.xwd bs=1 count=256 2>/dev/null | egrep -ao '^[[:print:]]+' | tr / :).xwd" </div> </td> </tr> In general, this is actually not better than the “scrot -d4” command I’m listing it as an alternative to, so please don’t vote it down for that. Continue reading
Older posts Newer posts