Another nice utility for blogging from within firefox.
Scribfire is another nice utility for blogging withing firefox. Nice features and quick and easy to configure and use ..
Scribfire is another nice utility for blogging withing firefox. Nice features and quick and easy to configure and use ..
All work and no fun makes Jack dull boy. So lets do something for fun. Here is a one liner I wrote sometime back. The original idea is not mine and I don’t remeber where I got the idea from but it was some other one liner that I was browsing for some oracle query. Anyway here’s the one liner to get lot of jokes in one file.
#!/bin/bash
Continue reading
for i in `echo 000{0..9} 00{10..99} 0{100..999} {1000..1600}` ; do links -dump http://www.robsjokes.com/$i/index.html | sed ’/Random Joke/,/Next Joke/!d’ | sed ’/^$/,/^$/!d’ » ~/Rob.jokes ; echo ’%’ » ~/Rob.jokes ;echo $i; done
I was testing a program which crashing every now and then. It is very difficult in such scenarios to keep looking for the <a class="zem_slink" title="Core dump" rel="wikipedia" href="http://en.wikipedia.org/wiki/Core_dump">core file or keep checking for the running process. So I wrote this simple script that can check for core file in the particular path and keep running until it finds one. You can hack this script to send a mail once the core is found. This is a very simple script. And this should work on solaris too..
Continue reading$ geoip(){curl -s "http://www.geody.com/geoip.php?ip=${1}" | sed '/^IP:/!d;s/<[^>][^>]*>//g' ;}
<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" />
by David Winterbottom (<a href="http://codeinthehole.com">codeinthehole.com)
<a href="http://feedads.g.doubleclick.net/~a/cceHjCeJpY_mGEm7ufxOyYvznhw/0/da"><img src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/~a/cceHjCeJpY_mGEm7ufxOyYvznhw/0/di" border="0" alt="" align="bottom" />
<a href="http://feedads.g.doubleclick.net/~a/cceHjCeJpY_mGEm7ufxOyYvznhw/1/da"><img src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/~a/cceHjCeJpY_mGEm7ufxOyYvznhw/1/di" border="0" alt="" align="bottom" />
<img src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/~r/Command-line-fu/~4/TiutyTYxoU0" border="0" alt="" width="1" height="1" align="bottom" />
URL: <a href="http://feedproxy.google.com/~r/Command-line-fu/~3/TiutyTYxoU0/geoip-lookup">http://feedproxy.google.com/~r/Command-line-fu/~3/TiutyTYxoU0/geoip-lookup<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://www.killerstartups.com/Web-App-Tools/retwt-me-shortening-links-in-a-new-setting">ReTwt.me – Shortening Links In A New Setting (killerstartups.com) <div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/9044e865-5beb-432f-b243-31d6858ee7a2/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/reblog_e21.png" alt="Reblog this post [with Zemanta]" /><span class="zem-script more-related pretty-attribution">
If you IP is 83.233.30.32 then contact me if you want to access my site in any manner. To check your IP click <a href="http://amit-agarwal.co.in/mystuff/getip_txt.php" target="_blank">here.
There is a problem with bash completion with quote_readline that causes the completion to fail. The problem is fixed in the bash completion package but there are still some other programs which are using the problematic code. Here is a way to find and resolve it.
First find the problematic program, most likely the recent one after which you started having the problems. Once that is found, find the file containing the definition of the function ”_filedirs()”. Now, delete this file and create a symbolic link to the bash_completion file in the /etc directory. If this file is not present then you need to install the bashcompletion package.
Continue reading<a id="aptureLink_4P0PJ73NaG" style="margin: 0pt auto; padding: 0px 6px; text-align: center; display: block;" href="http://en.wikipedia.org/wiki/Log%20analysis"><img style="border: 0px none;" title="Log analysis" src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/ph/360x320_WikipediaArticle" alt="" width="360px" height="320px" />
I was trying to do some <a class="zem_slink freebase/en/log_analysis" title="Log analysis" rel="wikipedia" href="http://en.wikipedia.org/wiki/Log_analysis">log analysis and finding the events in the logs. For this the logs had the Events logged as ”|+Event name|” or with sending and receiving. So I wrote this little script to take care of my requirements.
Continue reading