xmlwf – Is your xml document well formed?

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 the man page πŸ™‚

Enhanced by Zemanta

Script to get yourself some conkyrc files

Table of contents for conkyrc

  1. Get yourself some conkyrc files.
  2. Script to get yourself some conkyrc files
  3. Cont: Get yourself some more conkyrc files.

Continuing from where we left, here is a script that can do all this for you πŸ™‚

curl http://ubuntuforums.org/showthread.php?t=281865\&page=$i | sed -n '/\\/pr/ p'| sed '// d'| sed 's##\n-----------------------------------\n\n\n#' >conkyrc
	dos2unix conkyrc
	cp conkyrc .test
	while [ $(wc -l .test|sed 's/[^0-9]//g') != 0 ]
	do
		sed -n '1,/------------------------/ p' .test|sed '$d' >conkyrc.$count
		diff .test conkyrc.$count |sed 's/^<.//'|sed '1, /---------------------/ d;2d'>.test
		((count++))
	done

This will create couple of conkyrc.files in the current directory. Each of these is one from the web-page that I mentioned earlier. So, enjoy….

Enhanced by Zemanta

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

First install afraid-dyndns with the command:

1
sudo yum install afraid-dyndns

Now open the configuration file /etc/afraid-dyndns.cfg and we need to change the following:

Notify = [email protected] # leave empty to suppress notifications
CacheFile = /var/cache/afraid-dyndns/IP
AccountHash = <value>

For the Account hash, head over to http://freedns.afraid.org/api/ login and then click one of the XML or the ASCII links there. Once the page has loaded, look at the URL which is of form:

http://freedns.afraid.org/api/?action=getdyndns&sha=<number>

or

http://freedns.afraid.org/api/?action=getdyndns&sha=<number>&style=xml

The number above that you see in the actual URL is the account hash that you need to configure in the config file. Though it is very simple but could never get this correctly πŸ™‚ until today.

Enhanced by Zemanta