Skip to content

Instantly share code, notes, and snippets.

View ObiWahn's full-sized avatar
:octocat:

Jan Christoph Uhde ObiWahn

:octocat:
View GitHub Profile
@Earnestly
Earnestly / posix-issue8.md
Last active April 22, 2024 09:13
A Selected List of Additions and Changes Coming With POSIX Issue 8

A Selected List of Additions and Changes Coming With POSIX Issue 8

Last major change: 10th March 2023

New Commands

Additions

  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 March 5, 2024 10:50
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 April 16, 2024 12:50
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>