Skip to content

Instantly share code, notes, and snippets.

View martinpitt's full-sized avatar

Martin Pitt martinpitt

View GitHub Profile
@martinpitt
martinpitt / repro.sh
Created November 27, 2023 13:47
candlepin regenerate certificate
## works: clean reproducer without cert regen
```sh
# setup candlepin server
podman run -d --name candlepin -p 8080:8080 -p 8443:8443 --hostname candlepin.local --pull newer ghcr.io/ptoscano/candlepin-unofficial:latest
podman cp candlepin:/etc/candlepin/certs/candlepin-ca.crt .
cp ./candlepin-ca.crt /etc/rhsm/ca/candlepin-ca.pem
cp ./candlepin-ca.crt /etc/pki/ca-trust/source/anchors/
update-ca-trust
echo '127.0.0.1 candlepin.local' >> /etc/hosts
@martinpitt
martinpitt / tmt-analysis.md
Created November 2, 2022 13:15
cockpit test F37 vs. Rawhide analysis

cockpit run

  • pipeline start: 18:14:15
  • provision, pre-artifact: 18:17:32 + 3:17
  • artifact install: 18:19:33 + 2:01
  • post-artifact install: 18:19:34 + 0:01
  • tmt starts: 18:20:00 + 0:26
  • tmt ends: 18:52:05 + 22:05
@martinpitt
martinpitt / direct-session.mermaid
Last active September 1, 2023 07:13
consoledot PoC structure
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@martinpitt
martinpitt / cockpit-test-Rewrite-cdp-driver.js-using-async-await.patch
Created February 14, 2018 11:24
Cockpit: test: Rewrite cdp-driver.js using async/await
From 411db04f8575686ee636d88f6987ddb2456f77c6 Mon Sep 17 00:00:00 2001
From: Martin Pitt <martin@piware.de>
Date: Wed, 14 Feb 2018 08:08:53 +0100
Subject: [PATCH] test: Rewrite cdp-driver.js using async/await
This makes the main function much less nested and simplifies the error
handling.
---
test/common/cdp-driver.js | 94 ++++++++++++++++++++++-------------------------
1 file changed, 44 insertions(+), 50 deletions(-)