Skip to content

Instantly share code, notes, and snippets.

@vathpela
vathpela / is.h
Created May 18, 2018 20:38
I apologize.
/*
* is.h
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of the
* License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
sqlite> .schema nssPublic
CREATE TABLE nssPublic (id PRIMARY KEY UNIQUE ON CONFLICT ABORT, a0, a1, a2, a3, a10, a11, a12, a80, a81, a82, a83, a84, a85, a86, a87, a88, a89, a8a, a8b, a90, a100, a101, a102, a103, a104, a105, a106, a107, a108, a109, a10a, a10b, a10c, a110, a111, a120, a121, a122, a123, a124, a125, a126, a127, a128, a130, a131, a132, a133, a134, a160, a161, a162, a163, a164, a165, a166, a170, a180, a181, a200, a201, a202, a210, a40000211, a40000212, a300, a301, a302, a400, a401, a402, a403, a404, a405, a406, a480, a481, a482, a500, a501, a502, a503, ace534351, ace534352, ace534353, ace534354, ace534355, ace534356, ace534357, ace534358, ace534364, ace534365, ace534366, ace534367, ace534368, ace536351, ace536352, ace536353, ace536354, ace536355, ace536356, ace536357, ace536358, ace536359, ace53635a, ace53635b, ace53635c, ace53635d, ace53635e, ace53635f, ace536360, ace5363b4, ace5363b5, ad5a0db00, a80000001, ace534369);
CREATE INDEX issuer ON nssPublic (a81);
CREATE INDEX subject ON nssPublic (a101)
From cfd52b5212d0e5b5280f6c2cca4dd725bd1e9eb6 Mon Sep 17 00:00:00 2001
From: Peter Jones <pjones@redhat.com>
Date: Mon, 6 Nov 2017 11:30:47 -0500
Subject: [PATCH] Make --cache-alterations behave sanely.
Signed-off-by: Peter Jones <rpm-build>
---
py/mockbuild/plugins/root_cache.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From f156445e4295392b3bc4ac5714f5f558f1bc26f3 Mon Sep 17 00:00:00 2001
From: Peter Jones <pjones@redhat.com>
Date: Wed, 18 Oct 2017 12:25:37 -0400
Subject: [PATCH] Work around coverity being a pretty lazy and poor tool.
I mean, come on, at least dynamically import the types you've missed
from the version of GCC that's installed on the system and you're
pretending to emulate.
Signed-off-by: Peter Jones <pjones@redhat.com>
commit 8a8e8d2654fb556bb68a16d3de8404d63ffc3e92
Author: Peter Jones <pjones@redhat.com>
Date: Fri Feb 17 10:54:36 2017 -0500
Add .popt macros for "rpmspec --trace".
This lets you trace the macro expander when you do, for example,
"rpmspec --trace -P foo.spec".
Signed-off-by: Peter Jones <pjones@redhat.com>
02-06 10:54:41.178 2804 21918 I MicrophoneInputStream: mic_starting com.google.android.apps.gsa.speech.audio.af@ff0c60c
02-06 10:54:41.180 2804 21936 W S3RequestUpdatesSchdlr: The discourse context does not have the future for: VOICE
02-06 10:54:41.181 482 1321 E APM::AudioPolicyEngine: getDeviceForInputSource() no default device defined
02-06 10:54:41.181 482 1321 W APM_AudioPolicyManager: getInputForAttr() could not find device for source 6
02-06 10:54:41.182 2804 21918 E AudioRecord: Could not get audio input for session 1265, record source 6, sample rate 16000, format 0x1, channel mask 0x10, flags 0
02-06 10:54:41.192 601 601 I MediaPlayerService: MediaPlayerService::getOMX
02-06 10:54:41.193 2804 21918 E AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
02-06 10:54:41.193 2804 21918 E android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
02-06 10:54:41.193 2804 21918 E MicrophoneInputStream: Failed to initia
02-06 10:54:41.178 2804 21918 I MicrophoneInputStream: mic_starting com.google.android.apps.gsa.speech.audio.af@ff0c60c
02-06 10:54:41.180 2804 21936 W S3RequestUpdatesSchdlr: The discourse context does not have the future for: VOICE
02-06 10:54:41.181 482 1321 E APM::AudioPolicyEngine: getDeviceForInputSource() no default device defined
02-06 10:54:41.181 482 1321 W APM_AudioPolicyManager: getInputForAttr() could not find device for source 6
02-06 10:54:41.182 2804 21918 E AudioRecord: Could not get audio input for session 1265, record source 6, sample rate 16000, format 0x1, channel mask 0x10, flags 0
02-06 10:54:41.192 601 601 I MediaPlayerService: MediaPlayerService::getOMX
02-06 10:54:41.193 2804 21918 E AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
02-06 10:54:41.193 2804 21918 E android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
02-06 10:54:41.193 2804 21918 E MicrophoneInputStream: Failed to initia
commit a4e941d94849c032c60a9ac2465b6bd05fd51e2a
Author: Peter Jones <pjones@redhat.com>
Date: Thu Jan 5 16:47:25 2017 -0500
rpm2cpio and rpm2archive: don't write archive data to a terminal.
Signed-off-by: Peter Jones <pjones@redhat.com>
diff --git a/rpm2archive.c b/rpm2archive.c
index 8660e21..5443846 100644
From cd506e1b189f48eb068bddcc4c0e0fe2011e38c9 Mon Sep 17 00:00:00 2001
From: Peter Jones <pjones@redhat.com>
Date: Tue, 31 May 2016 13:47:06 -0400
Subject: [PATCH] remote: try x86_64 when 'g' packet size is wrong.
Signed-off-by: Peter Jones <pjones@redhat.com>
---
gdb/remote.c | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
#!/usr/bin/python3
# this is just a simple logger, so I can have a logger to show you
class Logger(object):
def __init__(self):
self.loglevel = 0
def __call__(self, level, msg):
import time
if self.loglevel >= level: