Skip to content

Instantly share code, notes, and snippets.

@oldendick
oldendick / gpg-ssh-setup.md
Created November 19, 2025 14:42 — forked from mcattarinussi/gpg-ssh-setup.md
A setup guide to use a personal gpg key for ssh authentication

GPG - SSH setup

Generating the master key

Here we create the master key. We want only Certify capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate capabilities will be assigned to the subkeys.

Run the following command to start the master key generation process. Select the set your own capabilities creation process (type 8)

  ▶ gpg --full-generate-key --expert

gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.

@oldendick
oldendick / putty.md
Created March 23, 2024 02:22
Saner putty settings

Putty has incredibly bad defaults. The main issue crops up when trying to use it to interact with z/VM programs that require lots of function keys.

Getting putty to cooperate with tmux and c3270 and have F1-F24 all work requires many settings to be just right.

I troubleshot this using the following commands:

infocmp -I $TERM
showkey -a
@oldendick
oldendick / caps-remap.ps1
Last active June 18, 2024 20:52
Remap caps lock to ctrl in windows
# Using this method is preferred over powertoys because it will also work with
# remote desktop and vmware.
#
# https://superuser.com/questions/949385/map-capslock-to-control-in-windows-10
#
# Setting an execution policy might be necessary to run powershell scripts.
# see: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.4
# Set-ExecutionPolicy -ExecutionPolicy <PolicyName> -Scope <scope>
# For example:
# Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process