Skip to content

Instantly share code, notes, and snippets.


Peter Jones vathpela

View GitHub Profile
View gist:756b55a5a1e21540cf4cd45bf47d47c6
random:~/devel/$ LD_LIBRARY_PATH=$PWD/src ./src/efisecdb -o out.db --type sha256 --owner-guid 0223eddb-9079-4388-af77-2d65b1c35d3b --add -h c97299e7e7dc5d1e29d72fa7c7a9da470c8c5d181beb553ebdb98d385653aa22 -h 38d2ed97bded4da4ba58676cf7ae7da77add8fefbf7eb1248757209fad9dabfc
random:~/devel/$ LD_LIBRARY_PATH=$PWD/src ./src/efisecdb --dump --annotate -i out.db
00000000 26 16 c4 c1 4c 50 92 40 ac a9 41 f9 36 93 43 28 |&...LP.@..A.6.C(| esl[0].signature_type = {sha256}
00000010 7c 00 00 00 ||...| esl[0].signature_list_size = 124
00000014 00 00 00 00 |....| esl[0].signature_header_size = 0
00000018 30 00 00 00 |0...| esl[0].signature_size = 48
0000001c esl[0].signature_header (end:0x0000001c)
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 Oct 29, 2020
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 / 0001-dammit.patch
Last active Nov 9, 2020
Fix coverity builds with any gcc in modern history...
View 0001-dammit.patch
From edbb3b49c57f6d33e0b3db1ec87fe93d596f3560 Mon Sep 17 00:00:00 2001
From: Peter Jones <>
Date: Mon, 9 Nov 2020 15:16:21 -0500
Subject: [PATCH] dammit
bin/{cov-emit => cov-emit-real} | Bin
bin/cov-emit | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 48 insertions(+)
rename bin/{cov-emit => cov-emit-real} (100%)
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 <>