Linux

Add current date and time in vim

2009/11/20

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.

Multiple search in vim

2009/11/19

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 …

Calculations

2009/11/17

<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 …

chatting with your friends when all chat sites are blocked.

2009/11/15

You 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 …

How a live distro can save you.

2009/11/08

Some time back I wrote about <a href="http://blog.amit-agarwal.co.in/2009/03/07/" target="_blank">how to use a live distro without CD or VM. Today that experiment saved my …

Linux xdg-open — replacement for start in windows

2009/11/05

if you want to open any document with the default document handler from the bash prompt or command prompt in linux then the simplest way to do that is use &#8221;xdg-open&#8221;. This can also …

Using nullglob and dotglob in bash scripts.

2009/11/04

<a href="http://www.cyberciti.biz/faq/bash-shell-check-for-any-mp3-files-in-directory/">Use BASH nullglob To Verify *.c Files Exists or Not In a Directory has a nice explanation on …

Photo Resizing

2009/11/04

for i in * do mogrify $i -resize 640×480 i done

Get your external IP address

2009/11/04

$ echo -e "GET /automation/n09230945.asp HTTP/1.0rnHost: whatismyip.comrn" | nc whatismyip.com 80 | tail -n1 […] <a href="http://www.commandlinefu.com"><img …

Citibank Doesn\’t Want Your Business, Linux Users

2009/11/03

This is an article from the Citibank customers in US. The Consumerist: &#8221;Citibank won&#8217;t let customers using Linux computers log in to their online accounts. Adam argues that in 2009 …

Using autologin for ftp sessions.

2009/10/30

A simple example of the .netrc file. Keep this file in your homedir and then chmod to 600. […] machine skyware login raj password ******** macdef init ls -lRt […] macdef hello bye

cups web interface.

2009/10/29

Today I found an interesting piece of information. I was trying to debug a problem with the cups service and found that cups offers a web administration.brbrThe server is running at port 631. So point …


This website uses cookies to ensure you get the best experience on our website. Learn more Got it