Watch, Read, Listen

  • Generating core dumps for PHP-FPM

    When you are getting some errors from PHP-FPM like “signal 11 (core dumped)” in your logs, you can need to generate some core dumps to understand what’s happening. Install packages You first need to install some packages to allow you generating dumps: apt-get install gdb php5-dbg System core updates You will then need to update…

  • Send its logs to one server using rsyslog mechanisms (with ssl support)

    Rysslog is allowing to send its logs from a file on a server to a remote server (or online service) that will collect and maintain all logs. Assumed server configuration We will here assume that you have a rsyslog server already running and listening on port 514 (TCP or UDP depending on your needs). This server…

  • How to setup an IPSec tunnel with Strongswan with high-availability on Linux

    It is possible to secure your communication between several sites (datacenters for example) by using an open-source VPN IPSec on your Linux System. We will see here how to: Set-up a VPN IPSec on Linux with Strongswan (https://www.strongswan.org) Set-up a high availability mechanism on top of this VPN connection to ensure the link will always…

  • How to capture results of a watch in a file

    For debugging purposes, it can sometimes be useful to write the results of a command executed at a given time lapse. You can easily monitor a command by using the watch command. By default a watch command is only displaying result, and you have to be in front of to see the results. If you…

  • Find which process is using a specific port

    If you need to know/find which process is using a specific port on your system, you can use some default tools for troubleshooting: netstat lsof WARNING: For the use of these tools, you will need root rights (or sudo rights will be efficient) First, with netstat you can use options tnlpu to display much informations on connections: $…

  • Add a function in shell on Linux (make dmesg timestamps human readable)

    You want to add a specific function on your shell which is not available in standard functions and you would like to be able to call it anywhere you want without the need to specify the script location? That’s quite easy to do, with some simple tricks 😉 ! We will here work with a…

  • Create an interactive command-line menu using Python

    It can be necessary to create a simple interactive menu on CLI (Command-Line Interface) using Python to allow users to make some choices while executing a script/program. As there is no standard library for this in Python, you will have to adapt it by yourself. Here is a very simple example of how to do…

  • Create a repeating event on last day of each month on Google Calendar

    There is no easy way to make an event repeating on last day of each month with Google Calendar. So here is a simple trick to pass through this and get an event repeating on the last day of each month. Open a simple text editor with a new file (with Notepad for example, it’s efficient!)…

  • Testing SMTP server using telnet (whether with authentication or not)

    You can need to perform testing with your SMTP server and see if you are able to send mail with it. You have your domain name, and you want to check if mail server is answering properly? 1. Check the mail server with DNS entries We first need to find the right DNS entry for MX…

  • Unsubscribe from birthdays calendar on Google Calendar

    To unsubscribe from the Birthday’s calendar, here is the process: Click on the arrow in left panel besides Other calendars and choose Browser interesting calendards Go to the More tab On line Birthdays, click on Unsubscribe at the right of the ligne