bash completion

2011-08-09 2 min read Bash Fedora Linux

I was working on some functions in bash to make my life easier and realized that if I added custom completion to my functions, it will be really good. So I headed over to google and searched for what I wanted. I did get a lot of information on bash completion but not a single concrete example that could help me do what I wanted. So, with the help of man pages and some results from the Google pages, I was finally able to accomplish what I wanted. So here it is:

Continue reading

Google+ – way to go for experinmenting.

2011-06-30 1 min read Uncategorized

Finally I got a invitations and was able to get into the Google+ today. Having been trying to do this for last couple of days, was quite anxious on how it is and how it fairs against Facebook and twitter.

First, heres a first look of the account:

 

[google+ Screenshot][1]
google+ Screenshot

 

Most noticable thing, as soon as you login is that all your contacts from google aare directly visible in your account and you can directly put them in any of the circles that you like. Picasaweb photos can be imported.

Continue reading

Solaris dump analysis

2011-05-18 1 min read Solaris

I had to debug a solaris crash dump and had no ides. Google search wasn’t much useful until finally I found this article:

http://cuddletech.com/blog/?p+AD0-448

have a look at this article, this suggests how to debug the core and find the offending process and root cause of the core in case of kernel panic.

Enhanced by Zemanta

Upload a video to youtube

2010-07-16 1 min read Linux Uncategorized

<span style="font-size: x-large;"><a href="http://feedproxy.google.com/~r/Command-line-fu/~3/JXJj-wy4keA/upload-a-video-to-youtube">Upload a video to youtube

$ google youtube post –title "My Video" –category Education ~/myvideo.avi <a class="zem_slink freebase/guid/9202a8c04000641f800000000042acea" title="Google" rel="homepage" href="http://google.com">Google just released a new commend line tool offering all sorts of new services from the commend line. One of them is uploading a <a class="zem_slink freebase/guid/9202a8c04000641f8000000000982f58" title="YouTube" rel="homepage" href="http://www.youtube.com/">youtube video but there are plenty more google services to interact with.

<a class="zem_slink freebase/guid/9202a8c04000641f8000000000054c6a" title="Uploading and downloading" rel="wikipedia" href="http://en.wikipedia.org/wiki/Uploading_and_downloading">Download it here: <a href="http://code.google.com/p/googlecl/">http://code.google.com/p/googlecl/

Continue reading

New Improvements in the site and added few more features.

2010-07-11 2 min read Uncategorized

Last couple of days I have spent quite some time on the <a class="zem_slink freebase/guid/9202a8c04000641f8000000000041684" title="Website" rel="wikipedia" href="http://en.wikipedia.org/wiki/Website">website design and format and performance along with moving my Hosting Provider.

Here are couple of things that you would notice immediately:

  1. Site loading time is decreased substantially. I saw it loading in 5 seconds from my system.

  2. I have moved my hosting from ZNetIndia to <a class="zem_slink freebase/guid/9202a8c04000641f80000000003f4284" title="Go Daddy" rel="geolocation" href="http://maps.google.com/maps?ll=33.617409,-111.90477&spn=0.01,0.01&q=33.617409,-111.90477%20%28Go%20Daddy%29&t=h">GoDaddy. Though the users do not have any direct impact in experience but that has definitely improved the performance. I have spent quite some amount of money on this and would request the viewers to click on the <a class="zem_slink freebase/guid/9202a8c04000641f800000000042acea" title="Google" rel="homepage" href="http://google.com">Google Advertisements to help me cover it. You help is much appreciated. Other way you can help is by way of buying my photos from my <a title="My E Sop" href="http://shop.amit-agarwal.co.in" target="_blank">e-shop.

    Continue reading

List of commands you use most often

2010-06-16 1 min read Bash Learning

<span style="font-size: x-large;"><a href="http://feedproxy.google.com/~r/Command-line-fu/~3/6MxHiSiINdo/list-of-commands-you-use-most-often">List of commands you use most often

$ history | <a class="zem_slink freebase/en/awk" title="AWK" rel="homepage" href="http://cm.bell-labs.com/cm/cs/awkbook/index.html">awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head > /tmp/cmds | gnuplot -persist <(echo 'plot "/tmp/cmds" using 1:xticlabels(2) with boxes') Plot your most used commands with gnuplot.

  • <a href="http://www.commandlinefu.com/commands/view/5845/list-of-commands-you-use-most-often">View this command to comment, vote or add to favourites
  • <a href="http://feeds2.feedburner.com/commands/by/sthrs">View all commands by <a href="http://feeds2.feedburner.com/commands/by/sthrs">sthrs

<a href="http://www.commandlinefu.com"><img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/header-logo.jpg" alt="commandlinefu.com" align="bottom" />

Continue reading
Older posts