Skip to content

Instantly share code, notes, and snippets.

View Turmaxx's full-sized avatar
💬
Estimating Derivations

Brook Turmaxx

💬
Estimating Derivations
View GitHub Profile

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

@Turmaxx
Turmaxx / build-failure.log
Last active July 25, 2024 10:42
NixOS Build Failure Log
sourcing setup hook '/nix/store/d7gxj7i9zr04mgf819k34vm5dzxgxjzn-pkg-config-wrapper-0.29.2/nix-support/setup-hook'
sourcing setup hook '/nix/store/yq6n8b0mnk0qxzbs3ajsjcp8ziwqylrl-patchelf-0.15.0/nix-support/setup-hook'
sourcing setup hook '/nix/store/iks1pihvbilsh5sy8qvpd638k422w9i8-update-autotools-gnu-config-scripts-hook/nix-support/setup-hook'
sourcing setup hook '/nix/store/h9lc1dpi14z7is86ffhl3ld569138595-audit-tmpdir.sh'
sourcing setup hook '/nix/store/m54bmrhj6fqz8nds5zcj97w9s9bckc9v-compress-man-pages.sh'
sourcing setup hook '/nix/store/wgrbkkaldkrlrni33ccvm3b6vbxzb656-make-symlinks-relative.sh'
sourcing setup hook '/nix/store/5yzw0vhkyszf2d179m0qfkgxmp5wjjx4-move-docs.sh'
sourcing setup hook '/nix/store/fyaryjvghbkpfnsyw97hb3lyb37s1pd6-move-lib64.sh'
sourcing setup hook '/nix/store/kd4xwxjpjxi71jkm6ka0np72if9rm3y0-move-sbin.sh'
sourcing setup hook '/nix/store/pag6l61paj1dc9sv15l7bm5c17xn5kyk-move-systemd-user-units.sh'
@Turmaxx
Turmaxx / flake.lock
Last active August 23, 2023 17:00
Hugo Flakes
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1692799911,
"narHash": "sha256-3eihraek4qL744EvQXsK1Ha6C3CR7nnT8X2qWap4RNk=",
"owner": "numtide",

Keybase proof

I hereby claim:

  • I am turmaxx on github.
  • I am bk_solo (https://keybase.io/bk_solo) on keybase.
  • I have a public key ASAFM8H4z6uQjBokr9U4JFTJ1xTsqQnS74mcmeh8U32wmQo

To claim this, I am signing this object:

@Turmaxx
Turmaxx / wingetbootstrap.ps1
Created July 2, 2023 11:27
Quick script to install windows programs that I use on a daily basis. Script uses winget as a package manager.
# This is a script to duplicate all the apps that I use on a daily basis on my windows machine to any new windows machine that I am on
# Written on June 06, 2023
# Revised and Updated Version on June 25, 2023
# Posted on GitHub Gist on July 02, 2023
# Windows Apps: Note to future-self below are app-ids that winget uses
$apps = @(
# Web Browers
"Mozilla.Firefox"
"Google.Chrome"
@Turmaxx
Turmaxx / permitDocker.sh
Last active November 16, 2022 23:36
This script is a fix for 'Got permission denined while trying to connect to Docker deamon'
#!/bin/bash
sudo groupadd docker
sudo usermod -aG docker $USER
# System will need a reboot
reboot
@Turmaxx
Turmaxx / mousewheel.sh
Last active November 8, 2022 12:23
Adjusts mousewheel scroll speed on Linux
#!/bin/bash
# Version 0.1 Tuesday, 07 May 2013
# Comments and complaints http://www.nicknorton.net
# GUI for mouse wheel speed using imwheel in Gnome
# imwheel needs to be installed for this script to work
# sudo apt-get install imwheel
# Pretty much hard wired to only use a mouse with
# left, right and wheel in the middle.
# If you have a mouse with complications or special needs,
# use the command xev to find what your wheel does.