rebuild rpm from installed rpm with rpmrebuild

Ever happened to you that you downloaded and installed  a rpm and then deleted the package? If your answer is yes, then there is a solution.

Come to the fairyland of rpmrebuild. Create the rpm from the installed files  and give a new number if required.

sudo yum install rpmrebuild

Simplest use is to

rpmrebuild <package name>

but I personally like the one mentioned below:

rpmrebuild -R -v -P –pug-from-db <package name>

stop indentation on current file in vim to keep the indentation from copied text.

I have been looking for this for quite some time. Finally found two easy ways to do it:

:setlocal noautoindent
:setlocal nocindent
:setlocal nosmartindent
:setlocal indentexpr=

Just use the above four commands when the file is already open to stop all the indentation/smart indentation/auto indentation in vim for the current file. If you want to map it then you can use shorthand notations and map it in the .vimrc file.

Example:

:map <F1> :setl noai nocin nosi inde=<CR>

wordpress upgraded to latest 2.8.5

Living on the edge and updating regularly is something I hope everyone likes. So I too did the same and upgraded my wordpress to 2.8.5 as soon as I saw the upgrade notice.