Skip to content

Instantly share code, notes, and snippets.

View Zer0S2m's full-sized avatar
🚲
developer-cyclist

Zer0S2m

🚲
developer-cyclist
View GitHub Profile
@Zer0S2m
Zer0S2m / build.gradle.kts
Created November 13, 2024 16:26 — forked from serpro69/build.gradle.kts
gradle junit test output
import org.gradle.api.tasks.testing.TestResult.ResultType
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent
//...
tasks.test {
useJUnitPlatform()
maxParallelForks = 1
testLogging { // credits: https://stackoverflow.com/a/36130467/5917497

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Gotten from the RedHat GPG migration manual

Backup the public and secret keyrings and trust database

## Export all public keys

gpg -a --export >mypubkeys.asc