A Journey of a Thousand Miles Begins with a Single Step

Using nested checklist in AsciiDoc

This post gives an example how to write nested checklists in asciidoc.

Read more

Change ownership of log files

I configured awstats to use the logs of proftpd to analyse the traffic (uploads and downloads). To process the log file, the log analyser needs file permission to read the log file. Changing the permission for others for read is a quick solution, but also regarding security a bad solution. To solve this, I put the analyser to a group that has permission to process the log file.

Read more

List and kill process on Windows Server

Well I’m forced to work with a Windows Server. For specific reasons, if you have an application that hangs up, you have the need to force an end to the process. This post shows the essential commands to kill a process on Windows Server with the command line.

Read more

Update to a specific tag with git

Git has the ability to tag specific points in history as being important. Typically people use this functionality to mark release points (v1.0, and so on). Following example demonstrated how to switch to a specific tag with git.

Read more

Pretty print an XML document in Java

If you want to have a pretty printed output of a XML tree, following snippet may be of interest to you.

Read more

Create a XML or HTML document

Using in Java the Document Object Model (DOM). This post contains a snippet to create XML document object.

Read more

List open files of a dedicated process

An open file may be a regular file, a directory, a block special file, a character special file, an executing text reference, a library, a stream or a network file (Internet socket, NFS file or UNIX domain socket.) A specific file or all the files in a file system may be selected by path.

Linux man page

Read more

Using watch to monitor processes

Using Linux you can monitor processes with watch. It executes a program periodically, showing the output in full screen.

Read more

Generate random log events for logstash

Instead of using stdin, logstash also offers the generator input plugin for generating random log events. You can either use a single message or multiple messages in lines.

Read more