Skip to content

Instantly share code, notes, and snippets.

View Retrockit's full-sized avatar

SolutionMonk Retrockit

  • ShinyEnterprises
View GitHub Profile
@Retrockit
Retrockit / gpg-import-and-export-instructions.md
Created December 31, 2023 21:14 — forked from chrisroos/gpg-import-and-export-instructions.md
Instructions for exporting/importing (backup/restore) GPG keys

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

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/

or, instead of backing up trustdb...

@Retrockit
Retrockit / RenewExpiredGPGkey.md
Created December 10, 2023 21:36 — forked from TheSherlockHomie/RenewExpiredGPGkey.md
Updating expired GPG keys and backing them up 🔑🔐💻

Updating expired GPG keys and their backup 🔑🔐💻

I use a GPG key to sign my git commits.

An error like this one might be a sign of an expired GPG key.

error: gpg failed to sign the data fatal: failed to write commit object
@Retrockit
Retrockit / 1-setup.md
Created March 8, 2023 12:44 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS

Methods of Signing with a GPG Key on MacOS

Last updated September 21, 2022

This Gist explains how to do this using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.

There has been a number of comments on this gist regarding some issues around the pinentry-program and M1 Macs. I've finally gotten a chance to try things out on an M1 and I've updated the documentation in 2-using-gpg.md to reflect my findings.

@Retrockit
Retrockit / install_docker_in_ubuntu_21-10.sh
Created December 10, 2022 00:21 — forked from pablodz/install_docker_in_ubuntu_21-10.sh
Install Docker in Ubuntu 21.10, Install Dockercompose on Ubuntu 21.10
# [🟨OPTIONAL] Uninstall old docker versions
sudo apt-get remove docker docker-engine docker.io containerd runc
# Refresh latest version
sudo apt-get update
# Install pre-req
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg \
@Retrockit
Retrockit / generate vhdx.md
Created September 4, 2022 00:22 — forked from rebooting/generate vhdx.md
Create bootable Win10 vhdx from windows 10 iso with unattended script
@Retrockit
Retrockit / py-gitignore
Created August 21, 2022 15:56 — forked from MOOOWOOO/py-gitignore
python pycharm gitignore
# Created by .ignore support plugin (hsz.mobi)
### Python template
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so

Tested only on Ubuntu 20.04, KDE Neon User Edition (based on Ubuntu 20.04) and OSX Mojave.

will probably work on other newer versions, with no changes, or with few changes in non-python dependencies (apt-get packages)

NOTE: Don't create a .sh file and run it all at once. It will not work. Copy, paste, and execute each command below manually. :-)

Ubuntu

# DO NOT RUN THIS AS A ROOT USER
#_preseed_V1
# Debian Ansible Server Preseed File
# Author: keybase.io/ubzy
# Targeted for: Debian 11 Bullseye
# Short link: https://git.io/fjiG3
### Localization
d-i debian-installer/language string en
d-i debian-installer/country string GB
@Retrockit
Retrockit / README
Created June 21, 2022 20:18 — forked from matthiasgleichauf/README
debian preseed
Stuff i found out about debian preseed.
It's all scattered, so I' collecting it here, so I can find it again, once I don't remember everything anymore.
Basic documentation is here:
https://www.debian.org/releases/stable/i386/apbs01.en.html
Additionally I found these interesting links:
http://hands.com/d-i/
Also these french guys had the same issue as me, that the installer suddenly complained that the setup cd isn't mounted.
@Retrockit
Retrockit / create-debian-usb-key.sh
Created June 8, 2022 22:22 — forked from nmaupu/create-debian-usb-key.sh
Create Debian USB key automatic installation (preseed)
#!/usr/bin/env bash
set -e -x -o pipefail
DIRNAME="$(dirname $0)"
DISK="$1"
: "${DEBIAN_RELEASE:=stretch}"
: "${DEBIAN_VERSION:=9.2.1}"
: "${DEBIAN_MIRROR:=http://ftp.debian.org}"