Skip to content

Instantly share code, notes, and snippets.

View Godrigos's full-sized avatar

Rodrigo Aluizio Godrigos

  • UFPR
  • 127.0.0.1
View GitHub Profile
@mcattarinussi
mcattarinussi / gpg-ssh-setup.md
Last active July 28, 2025 23:18
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.

@albulescu
albulescu / download.go
Created March 25, 2016 09:44
golang download file with progress
package main
/**
* @website http://albulescu.ro
* @author Cosmin Albulescu <[email protected]>
*/
import (
"bytes"
"fmt"