Skip to content

Instantly share code, notes, and snippets.

Peter Jones vathpela

Block or report user

Report or block vathpela

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View efi_time.c
#include "efi_time.h"
#include <time.h>
char *
efi_strptime(const char *s, const char *format, efi_time_t *time)
struct tm tm;
char *end;
if (!s || !format || !time) {
View gist:c45ec2b37a4595639bd4924d007291dd
%setup -n efivar-38 -q
/usr/bin/git init -q
/usr/bin/git config "rpm-build"
/usr/bin/git config "<rpm-build>"
/usr/bin/git add .
/usr/bin/git commit -q --allow-empty -a\
--author "rpm-build <rpm-build>" -m "efivar-38 base"
View gist:fec43486f0d14af43e2e1d8d83860ca7
%setup -n edk2-edk2-stable201905 -q
/usr/bin/git init -q
/usr/bin/git config "rpm-build"
/usr/bin/git config "<rpm-build>"
/usr/bin/git add .
/usr/bin/git commit -q --allow-empty -a\
--author "rpm-build <rpm-build>" -m "edk2-20190501stable base"
vathpela / grub-https.cfg
Last active Apr 4, 2019
View grub-https.cfg
set default="0"
function load_video {
insmod efi_gop
insmod efi_uga
insmod video_bochs
insmod video_cirrus
insmod all_video
vathpela / fix_coverity.h
Last active Jun 19, 2019
Fix coverity builds with any gcc in modern history...
View fix_coverity.h
* fix_coverity.h
* Copyright 2017 Peter Jones <>
* We came in peace for all of human kind.
vathpela / is.h
Created May 18, 2018
I apologize.
View is.h
* 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
View gist:b2e6d862722d1c17b39bcb8c8bbbb164
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)
View 0001-Make-cache-alterations-behave-sanely.patch
From cfd52b5212d0e5b5280f6c2cca4dd725bd1e9eb6 Mon Sep 17 00:00:00 2001
From: Peter Jones <>
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/ | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
View gist:f91a3c2943ef6f560c91aa86ea194772
From f156445e4295392b3bc4ac5714f5f558f1bc26f3 Mon Sep 17 00:00:00 2001
From: Peter Jones <>
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 <>
View gist:d7eadab46fba2d14aea3bc781db31ba9
commit 8a8e8d2654fb556bb68a16d3de8404d63ffc3e92
Author: Peter Jones <>
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 <>
You can’t perform that action at this time.