Categories
Uncategorized

How to edit Icewind Dale EE savegame

I have spent countless hours playing role-playing video games. Recently, I bought Icewind Dale: Enhanced Edition for Linux. It is still a great experience, but I have to admit that I have gone to the dark side and modified the save file. Just think of it as a programming exercise.

Categories
SysOps

How to explain umask

I wrote a simple application to explain the current UMASK value. It was a while ago, but I want to share it with you as it is quite a useful utility.

Categories
SysOps

How to perform action after SQL statement

Sometimes I want to monitor and log particular PostgreSQL statements or execute other kinds of external action.
I am using the notify mechanism and slightly modified sample application found in the database documentation to achieve this.

Categories
Uncategorized

How to forbid script execution from different directory

Today I have found an interesting issue as I tried to forbid shell script execution from different directory.

Categories
SysOps

Kolab 3.1.5, Debian 7.5 and issue during setup process

After a longer period of time, I have decided to install Kolab and use it as a personal information manager. The installation process went as expected until the setup process tried to install the Roundcube database and failed miserably.

Categories
Uncategorized

Learn C and build your own programming language

Learning programming may seem like an impossible feat, that being said however, with the right resources and information just about anyone can learn the most essential language that is used today.

Categories
Uncategorized

How to determine the sunrise and sunset times

A couple of days ago, I mentioned calculating the sunrise and sunset times. This is an interesting problem, so after reading Astronomy Answers – Position of the Sun, I quickly implemented it using C language. It is only an experiment, so results are approximate.

Categories
Uncategorized

How to display min and max values of the basic object types

As a small experiment, I wrote an elementary C program to display min and max values of the basic object types.

Categories
Uncategorized

How to read CCQ on Ubiquiti devices

Last year I published the blog post Cacti – How to graph CCQ on Ubiquiti devices. Recently I updated ubiquiti_ccq.pl script, so it will work with all NanoBridge and PowerBridge devices.

Categories
Uncategorized

How to graph CCQ on Ubiquiti devices

As you probably already know, the CCQ value is not available via SNMP (AirOS 5.5.2), but of course it doesn’t mean it can’t be graphed using Cacti. To graph CCQ on Ubiquiti devices, you just need to use a simple script to read the desired value using the web interface.