Skip to content

Instantly share code, notes, and snippets.

View fat-lobyte's full-sized avatar

Alexander Korsunsky fat-lobyte

View GitHub Profile
@fat-lobyte
fat-lobyte / f24-audit_enforcing
Created July 3, 2016 15:00
Fedora 24 boot logs after upgrade
This file has been truncated, but you can view the full file.
type=USER_AVC msg=audit(1463334717.278:179): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='Unknown permission start for class system exe="/usr/lib/systemd/systemd" sauid=0 hostname=? addr=? terminal=?'
type=USER_AVC msg=audit(1463334717.278:180): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='Unknown permission start for class system exe="/usr/lib/systemd/systemd" sauid=0 hostname=? addr=? terminal=?'
type=USER_AVC msg=audit(1463334717.294:181): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='Unknown permission start for class system exe="/usr/lib/systemd/systemd" sauid=0 hostname=? addr=? terminal=?'
type=USER_ACCT msg=audit(1463334717.300:182): pid=1176 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='op=PAM:accounting grantors=pam_unix,pam_localuser acct="gdm" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
type=USER_START msg=audit(1463334717.301:183): pi
@fat-lobyte
fat-lobyte / ksrpc_logger.py
Last active August 30, 2019 14:36
A small logging script for Kerbal Space Program that uses the kRPC mod
#!/usr/bin/env python3
# (C) Alexander Korsunsky, 2016
import krpc
import time
import sys
import numpy as np
import argparse
@fat-lobyte
fat-lobyte / gist:5563307
Created May 12, 2013 11:55
Verbose log of Hadouken installation
=== Verbose logging started: 09.05.2013 17:56:45 Build type: SHIP UNICODE 5.00.7600.00 Calling process: C:\Windows\system32\msiexec.exe ===
MSI (c) (94:88) [17:56:46:024]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg
MSI (c) (94:88) [17:56:46:024]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg
MSI (c) (94:CC) [17:56:46:040]: Resetting cached policy values
MSI (c) (94:CC) [17:56:46:040]: Machine policy value 'Debug' is 0
MSI (c) (94:CC) [17:56:46:040]: ******* RunEngine:
******* Product: hdkn-1.3.3.4000-x64.msi
******* Action:
# HG changeset patch
# Parent 680e46fecff055a80d84843a45ba4a195541da88
# User Jan Horak <jhorak@redhat.com>
# Bug: #309807 Allows storing Master password to Gnome Keyring
diff --git a/config/system-headers b/config/system-headers
--- a/config/system-headers
+++ b/config/system-headers
@@ -1061,16 +1061,19 @@ hildon-uri.h
hildon-mime.h
@fat-lobyte
fat-lobyte / gist:3621720
Created September 4, 2012 14:35
Do the log!
Do this: http://www.techrepublic.com/article/use-stl-streams-for-easy-c-thread-safe-logging/5072104
Read this: http://www.drdobbs.com/cpp/logging-in-c/201804215?pgno=2
====== logging.hpp: ======
class LoggerBackend {
void log(enum level l, const char* who, <whatever> message)
{
print time, who, level, message;