Archive for the ‘Linux’ Category

Simple command to “watch” the webserver access log

Friday, April 2nd, 2010

I am often curious as to what bots are going on my site at any given moment. So much so that I devote one terminal tab to running this script. save the following as say bot.sh and make it executable :- #!/bin/bash watch "grep $1 /path/to/access.log | tail -15" note: the number after tail ...

A beautiful video about LINUX

Thursday, December 25th, 2008



Make your own cheap charlie CDN

Saturday, June 28th, 2008

CDN stands for Content Delivery(or Distribution) Network. It is a network of servers usually located in various geographic locations to improve the availability and access speed of a website (or webapp or other media). The main use of CDNs were during the nineteens when inter-continental access was slow, scarce and ...

Open letter to Thailand’s Software Bullies

Saturday, June 21st, 2008

Kind attn : Microsoft Thailand (Sorry I cant read your Thai only website) Kind attn : Lenovo Thailand (Sorry cant find name of contact on your site) Kind attn : Prasert Charoonpaisal - General Manager - Personal Systems Group (PSG) - HP Thailand Kind attn : Corporate Communications Dept. - Sony Thai Co., ...

My history

Tuesday, April 15th, 2008

Stolen idea from Sugree... [sajal@localhost ~]$ history|awk '{a[$2]++} END{for(i in a){printf "%5d\t%s\n",a[i],i}}'|sort -rn|head 239 ./autofollow.pl 149 ssh 96 ping 56 df 51 cd 43 ls 36 su 23 GET 22 ./gtalk.pl 18 whois [sajal@localhost ~]$