Skip to main content

G-Loaded Journal

Menu

Skip to content
  • About
  • Features
  • Archives
  • License
  • Contact

How to tail log entries through the systemd journal using Python

November 26, 2016
George Notaras
Programming No Comments

This post describes how to use the Python bindings of systemd in order to follow and parse log entries of a specific service in real time through systemd’s journal. This is an alternative way to tail log files which can be very easily customized.

Prevent text wrapping inside the pre HTML tag

November 25, 2016
George Notaras
Programming No Comments

While doing some maintenance work on my web site, I noticed that the text of long lines inside the pre HTML tags wrapped. I’m quite certain this kind of text wrapping did not occur in the past. After experimenting with the developer tools of Firefox for a while, I noticed that the white-space property of…

Continue reading →

How to set the Expires header correctly in Varnish

November 25, 2016
George Notaras
Servers No Comments

This post provides the required VCL code and describes how to dynamically set the Expires header whenever an object that has been cached by Varnish is requested.

How to terminate running Python threads using signals

November 24, 2016
George Notaras
Programming No Comments

This post outlines some important details you should know in case you plan to use signals to terminate a Python script that uses threads. A sample code snippet is also provided as an example that shows how it works.

Post navigation

About

G-Loaded Journal is a technical blog that publishes news, guides and tutorials about GNU/Linux and other Free Open-Source Software. Our mission is to share our experience and knowledge about system administration, automation and programming. Read more »

Search

Topics

  • Announcements
  • Blogging
  • Desktop
  • Editorial
  • Hardware
  • Licenses
  • Linux
  • Operating Systems
  • Programming
  • Security
  • Servers
  • Services
  • Software
  • System
  • Uncategorized
  • Virtualization
  • Web Applications

Recent Posts

  • Hacked and exploited!
  • How to tail log entries through the systemd journal using Python
  • Prevent text wrapping inside the pre HTML tag
  • How to set the Expires header correctly in Varnish
  • How to terminate running Python threads using signals
  • Maintenance time
  • Things to avoid when using the installation wizard of MediaWiki
  • Fixing the robots.txt content type of Redmine at CodeTRAX
  • Back to blogging
  • Some thoughts about Copyright related activism

About

G-Loaded Journal is a technical blog that publishes news, guides and tutorials about GNU/Linux and other Free Open-Source Software. Our mission is to share our experience and knowledge about system administration, automation and programming.
  • About
  • The Team
  • Technology
  • Advertise
  • Contact
  • License
  • Privacy Policy
  • Terms of Service

Copyright © 2005-2016 G-Loaded Journal – All Rights Reserved