yow!
commentscript
a script to comment/uncomment blocks in perl scripts
save this executable perl script in any folder that is included in PATH, or in ~/bin (which is already there in PATH). (and also make sure it is executable if it somehow doesnt work)
Usage: commentscript perlscriptname
where perlscriptname is the... make a wild guess... yip, the script containing the block that you want commented.
Description:
In any perl script, to comment blocks of code, put a block (a collection of consecutive lines, nothing more) between ## and ## (they should both be at the start of a line), and run this script on it (by passing perlscriptname as a command-line argument).
To uncomment, change both the ##'s to ##! and run this script on perlscriptname again.
Example:
print "hi. ";
##
print "hah.";
print " blah hash";
##
print "hash functions are cool";
changes to
print "hi. ";
##
# print "hah.";
#
# print " blah hash";
##
print "hash functions are cool";
and
print "hi. ";
##!
# print "hah.";
#
# print " blah hash";
##!
print "hash functions are cool";
changes to
print "hi. ";
print "hah.";
print " blah hash";
print "hash functions are cool";
ps - for extra safety, the script also makes a backup copy of the original perlscriptname by the name of perlscriptname.backup in the folder that the script (commentscript) is run from.
psst - comments, bug reports, and additional feature requests are... as ever... most welcome.
Tuesday, March 11, 2008
Monday, March 10, 2008
killprog - handy bash script to kill hung up processes
a handy bash script to kill required processes:
killprog
save this file in your ~/bin/ folder
usage: killprog [program1] [program2] ...
examples:
killprog vlc
killprog firefox
killprog vlc firefox
ps - if it doesnt work, make sure it is an executable.
chmod +x killprog
comments, bug reports, and additional feature requests are welcome :P
save this file in your ~/bin/ folder
usage: killprog [program1] [program2] ...
examples:
killprog vlc
killprog firefox
killprog vlc firefox
ps - if it doesnt work, make sure it is an executable.
chmod +x killprog
comments, bug reports, and additional feature requests are welcome :P
Monday, January 14, 2008
Saturday, December 29, 2007
merry christmas world! u get a firefox extension from me! ho ho ho!

i m santa
and here's ur christmas gift
a brand new
now browse through google search results right there on the search page itself!
click to download
after downloading, drag the extension (xpi) file into firefox and click Install. then restart firefox and go to google.com
search for something. now every search result has a link Open Inline alongside it.
Click on Open Inline. the page that that search result refers to, will open right there! and browse inside that newly opened page, click links, wander around, do whatever.
when done, close the inline page by clicking Close Inline
or open another search result's page simultaneously!
open close open close open open close open close close blah blah
congratulations, u've browsed through all the information you wanted, from varied sources, all from the same old search page! o blimey!
:)
click to download the extension. Or Right Click here and select Save Link as...
OR
there's even a Greasemonkey script goodie!
simply click here to install the greasemonkey script that does basically the same.
merry christmas!
ho ho ho!
ps - the santa cap's not for sale. period.
Thursday, December 20, 2007
ke ye naina hai kehte
mujhse, tere
man mein rehte
khwaab meri
aarzoo mein karte rehte
justujoo hain
na koi bandishein
na ranjishein
na raste rukavatein hain
aahatein hain
kadmo ki jo
bajti si jo
man mein yun hai
khol bhi do
ye badi jo
aankhein hain na
baatein hain na
karti jaise
darti aise
fir ye kyu hai
bol do gar
jhooth hai sab
bolo magar
kuch mere rab
dekh idhar
bhar rahe ab
ye aansoo hain
jana chale
mil ke gale
khanjar ko
seene tale
rakh bhi lungi
na karungi
aarzoo main
mujhse, tere
man mein rehte
khwaab meri
aarzoo mein karte rehte
justujoo hain
na koi bandishein
na ranjishein
na raste rukavatein hain
aahatein hain
kadmo ki jo
bajti si jo
man mein yun hai
khol bhi do
ye badi jo
aankhein hain na
baatein hain na
karti jaise
darti aise
fir ye kyu hai
bol do gar
jhooth hai sab
bolo magar
kuch mere rab
dekh idhar
bhar rahe ab
ye aansoo hain
jana chale
mil ke gale
khanjar ko
seene tale
rakh bhi lungi
na karungi
aarzoo main
Wednesday, December 12, 2007
मेरा वो गुमशुदा अरमान
के मैं मासूम सा अरमान फिसल जाता हूँ
हाँ मेरा घर है ये इंसान
जो यूं है तो बुद्धिमान पर...
रहता परेशान मेरा
रखता नहीं ध्यान निकल जाता हूँ
इसका दिमाग जाल बड़ा
ढेरों बत्तियों से भरा
ये जले कभी वो कभी अँधेरा हो शैतां
मैं संभल जाता हूँ
मैं नहीं मर जाऊँ कहीं
चाहे ये समझे या नहीं
मेरे बिना मुर्दा है मैं गर हूँ तो इसमें जान
ना समझेगा ये नादां मैं निकल जाता हूँ
यूँ तो ज़िंदगी मुश्किल है के जी पाना भी मंजिल है
मगर खो ना जाना आदतों में रात दिन इबादतों में
सीने में जो दिल है
वो पुकारता मुझे मैं मचल जाता हूँ
के मुझे थाम ले इन्सां
मैं तेरा एक ही अरमान
मुझे पूरा कर दे यूं के
ये दुनिया भी हो हैरान यही चाहता हूँ
हाँ मेरा घर है ये इंसान
जो यूं है तो बुद्धिमान पर...
रहता परेशान मेरा
रखता नहीं ध्यान निकल जाता हूँ
इसका दिमाग जाल बड़ा
ढेरों बत्तियों से भरा
ये जले कभी वो कभी अँधेरा हो शैतां
मैं संभल जाता हूँ
मैं नहीं मर जाऊँ कहीं
चाहे ये समझे या नहीं
मेरे बिना मुर्दा है मैं गर हूँ तो इसमें जान
ना समझेगा ये नादां मैं निकल जाता हूँ
यूँ तो ज़िंदगी मुश्किल है के जी पाना भी मंजिल है
मगर खो ना जाना आदतों में रात दिन इबादतों में
सीने में जो दिल है
वो पुकारता मुझे मैं मचल जाता हूँ
के मुझे थाम ले इन्सां
मैं तेरा एक ही अरमान
मुझे पूरा कर दे यूं के
ये दुनिया भी हो हैरान यही चाहता हूँ
Subscribe to:
Posts (Atom)

