Add current date and time in vim
Last few days I was quite busy. So this time very quick tip 🙂
Add the following to the ~/.vimrc file
imap dt :r! dateA
And now whenever you type dt in the insert mode in vi, date will be inserted.
Last few days I was quite busy. So this time very quick tip 🙂
Add the following to the ~/.vimrc file
imap dt :r! dateA
And now whenever you type dt in the insert mode in vi, date will be inserted.
I was looking at a log file and needed to highlight multiple search items to make the logs more readable. I got into multiple threads suggesting various cryptic vim commands but I was in no mood to remember them. So, I finally hit <a href="http://www.vim.org/scripts/script.php?script_id=479" target="_blank">this.
This is a cool vim script which you can use to highlight multiple search patter. You can simply add a search term by doing
Continue reading<img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/perl-one-liners.jpg" alt="Perl One Liners" align="bottom" />This is the third part of a seven-part article on famous Perl one-liners. In this part I will create various one-liners for calculations. See <a href="http://www.catonmat.net/blog/perl-one-liners-explained-part-one/">part one for introduction of the series.
Famous Perl one-liners is my attempt to create “perl1line.txt” that is similar to “<a href="http://www.catonmat.net/blog/awk-one-liners-explained-part-one/">awk1line.txt” and “<a href="http://www.catonmat.net/blog/sed-one-liners-explained-part-one/">sed1line.txt” that have been so popular among Awk and Sed programmers.
The article on famous Perl one-liners will consist of at least seven parts:
Continue readingFor those of the terminal freaks, color is a bliss. But have you tried all the colors in the terminal. Today someone forwarded me a bash one liner for the same. Not sure where he got this from, anyway here is the one liner for you all:
Continue readingYou can use, <a href="http://chat.aka-photo.com/">http://chat.aka-photo.com/.
I just installed it to keep my self connected with the other friends of mine. Does not store the data for long and no need to create a username if you dont want to .. just enter any name in the username and press enter. Ask the other person to join the same room and that’s it.
Oh, BTW, I bought this domain to lauch another <a href="http://eshop.aka-photos.com">e-shop or at <a href="http://shop.aka-photos.com">shop. Aha, do let me know which one looks better.
Continue readingI have been trying to get the sound working on the F11 install that I had. Searched all the sites and blogs I could find. Nothing seemed to be working.
Finally I did a
alsactl init
and WOW, I have got my sound. Worht a try if you too are having issues with sound.
If you are used to using Qemu for doing some experiments with different distro’s then you would also understand the problem of having to do ftp/ssh to copy the files from virtual machine to local machine. Also you have to run the machine to do that. How would you like to have a application that can help you copy the files to and from the image without having to run the VM. That’s exactly what the guestfish does. How to do it, quick demo here:
Continue reading