Application programming interface

get all the urls in html file (local or on server).

2014/02/17

To use this, you will need the lynx tool, so install that first. sudo yum install lynx Now, to get list of all the URLs in local html file or some URL, just execute this: lynx -dump -listonly Related …

Home grown mail scheduler with bash script and cron

2013/10/04

If you are using Linux (Fedora/Ubuntu or anything else) then you do get a lot of tools and one of them is cron. Very very useful. Just write some script that can do the task for you, put it in cron …

xmlwf – Is your xml document well formed?

2012/02/18

There is a small nifty utility called xmlwf that can check your xml documents to see if they are well formed. sudo yum install expat Once installed, simply use : xmlwf Need more details, just check …

client lanman auth is disabled error for samba

2011/04/28

The error: […] Server requested LANMAN password (share-level security) but ‘client lanman auth’ is disabled […] is easily fixable. You just need to tell samba that client lanman auth is …

configuration for afraid-dyndns on Fedora and other similar distro.

2011/03/04

First install afraid-dyndns with the command: […] <td> <div class="text codecolorer"> sudo yum install afraid-dyndns </div> </td> </tr> Now open the …

print every nth line

2011/03/01

Some time back I was working with lot of data and wanted to analyze only the every 10 line sometimes and sometimes every 20th line. I had to keep doing these changes in vim or otherwise so finally I …

analyze debug queries output for wordpress

2011/02/09

Some time back, my website became too slow and I started getting timeout response for quite a lot of my pages. When I analyzed things, I found the issue was with the DB queries taking a lot of time. …

Thumbnail

Empty a file

2010/12/26

<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;"> Image via <a …

Repeat a portrait eight times so it can be cut out from a 6″x4″ photo and used for visa or passport photos

2010/12/17

Repeat a portrait eight times so it can be cut out from a 6″x4″ photo and used for visa or passport photos […] <td> <div class="text codecolorer"> montage …

intercept stdout/stderr of another process or disowned process

2010/11/23

The command is definately going to save your day if you have disowned the process by mistake. Only uses strace so might as well work on Solaris also, though not tried it. intercept stdout/stderr of …

Using SQLite to maintain your monthly bills.

2010/08/24

I was looking for a small application to maintain my every month bills. The application had to be small and script-able. I basically wanted to keep track of the bills that have been generated and …

SQLite – simple use in scripts

2010/08/21

Today we will look a the most simple use&#8217;s in the scripts and how to use them. […] echo &#8221;insert into bills values (&#8221;$name&#8221;,$date_now, …


This website uses cookies to ensure you get the best experience on our website. Learn more Got it