Skip to content

Instantly share code, notes, and snippets.

View ObiWahn's full-sized avatar
:octocat:

Jan Christoph Uhde ObiWahn

:octocat:
View GitHub Profile
@ObiWahn
ObiWahn / qt-unix-signals.md
Created April 15, 2022 16:28 — forked from azadkuh/qt-unix-signals.md
Catch Unix signals in Qt applications

Unix signals in Qt applications

It's quite easy to catch unix signals in Qt applications. you may like to ignore or accept them.

#include <QCoreApplication>

#include <initializer_list>
#include <signal.h>
#include <unistd.h>
@ObiWahn
ObiWahn / mysql_query_log.md
Created November 18, 2021 16:03 — forked from joseluisq/mysql_query_log.md
How to enable the MySQL/MariaDB general query logs

How to enable the MySQL/MariaDB general query logs

  1. Enter to MySQL/MariaDB server command-line tool (change root with your username and password):
mysql -u root -proot
  1. Set the general log file path:
SET GLOBAL general_log_file='/var/log/mysql/mycustom.log';