Skip to content

Instantly share code, notes, and snippets.

View ObiWahn's full-sized avatar
:octocat:

Jan Christoph Uhde ObiWahn

:octocat:
  • xtonomy
  • Cologne, Germany
  • 21:22 (UTC +01:00)
View GitHub Profile
@Earnestly
Earnestly / posix-issue8.md
Last active October 30, 2024 12:40
A Selected List of Additions and Changes Coming With POSIX Issue 8
  1. Install package libstdc++6 (Ubuntu 16.04)
  2. Add following to ~/.gdbinit
python
import sys 
sys.path.insert(0, '/usr/share/gcc-9/python')
from libstdcxx.v6.printers import register_libstdcxx_printers
register_libstdcxx_printers (None)
end
@joseluisq
joseluisq / mysql_query_log.md
Last active May 24, 2024 07:31
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';
@azadkuh
azadkuh / qt-unix-signals.md
Last active November 8, 2024 15:28
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>