wordpress blog stats monitoring from remote using curl and bash and send it in mail.

2010-06-25 3 min read Bash Fedora Linux

Here’s something that I had been planning to do for sometime now. I have my blog on wordpress and have Statpress plugin installed. The plugin does give me a good idea of the visits to my site. Now, I have to keep logging in every now and then to check the stats. Also since I did not want to spend some more amount 🙂 so I do not have the shell access to the server, too bad 🙁

Continue reading

6700 free and redistributable fonts for Linux.

2010-06-25 1 min read Fedora Linux

Today I was searching for some good fonts for my desktop running Fedora 11 – Leonidas. In my quest to find the required fonts that I would liked, I reached some good sites so just thought would share the same with you.

First, how do you use them, simple steps:

mkdir ~/.fonts

Now you can put your fonts in this directory. You can make sub-directories to keep your fonts organized. On F11, I did not need to refresh the font server or logout and login. 🙂

Continue reading

Useless use of cat awards

2010-06-25 22 min read Linux

<a href="http://partmaps.org/era/unix/award.html#cat">Here you will find some useless use of cat command in linux. Really interesting and quite informative.

Useless Use of Cat Award

If you&#8217;ve been reading <a href="news:comp.unix.shell">comp.unix.shell or any of the related groups <a href="news:comp.unix.questions">(comp.unix.questions inter alia) for any amount of time, this should be a familiar topic.

I made this web page on the topic primarily so I&#8217;d have a simpler URL than one of those ghastly Deja News searches to hand to people. I&#8217;ve tried to reconstruct Randal&#8217;s standard form letter from looking at his postings <a href="http://partmaps.org/era/unix/award.html#forms">(see end) and added some comments of my own.

Continue reading

Getting the list of IOCTLS in the kernel.

2010-06-25 1 min read Linux

Sometime back I was helping one of my friends in looking for all the IOCTLs supported by the kernel. Well we did not find the info we were looking for and thus thought to write a perl script to get all the IOCTLS supported by the kernel. Here it is, simple script to scan through the code and give you a list:

#!/usr/bin/perl —

@files = `grep -r &#8221; _IO&#8221; /usr/src/redhat/SOURCES/linux-2.6.20/* |grep define ioctls_grep`;
open (DAT, &#8221;ioctls_grep&#8221;) ||die &#8221;could not open ioctls_grep&#8221;;
@files = DAT;
close(DAT);
my %ioctls_numbers;
print &#8221;Grep completed..\n&#8221;;
open (DAT, &#8221;ioctls_numbers_found&#8221;);

Continue reading

Hurray crossed 1000 visits for the day..

2010-06-25 1 min read Linux

A picture is worth thousand words..

<img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/stats.jpg" alt="stats" title="stats" width="414" height="30" class="alignnone size-full wp-image-650" />

Thanks to all of you..

Older posts Newer posts