How to convert date to Julian Day Number using shell script

I was wondering how to calculate Julian Day Number as I will need it to determine the sunrise and sunset times. Algorithms are extensively described so I will just point you to the two most useful pages – Julian day/Wikipedia and Julian Day Numbers/UT.

After a short while I wrote a shell script to convert between Gregorian calendar date and Julian Day Number.

Continue reading →

How to open manual page at the specific page section

After writing previous blog entry I started to think about how to specify page section when opening manual page. It is simple but quite interesting issue so I quickly got curious and wrote this post to describe straight solution. Just to be clear – I need to mention that I am not writing about section numbers describing distinct subject areas but just page sections, such as NAME, SYNOPSIS, DESCRIPTION, AUTHORS and so on.

Continue reading →

How to relay selected mailboxes using ISPConfig 3

I hit an intriguing problem as I needed to relay selected mailboxes rather than the whole domain. I assume that you have already noticed that everything needs to happen on the same domain. It is rare and quite interesting task so I will quickly describe it here using ISPConfig 3 but beware as this is a very specific topic so I strongly suggest to investigate it further before applying any changes.

Continue reading →

Ajenti – Clean and simple web-based administration tool

Recently I was searching for clean and simple web-based administration tool for a couple of small virtual servers so I decided to use Ajenti. It is simple and easily extendable administration/monitoring utility using Python language. Installation is very straightforward as there are packages available for FreeBSD operating system and a couple of Linux distributions.

Continue reading →