Skip to content

Instantly share code, notes, and snippets.

View hensg's full-sized avatar
🕊️

Henrique hensg

🕊️
  • Florianópolis, SC - Brazil
  • 14:18 (UTC -03:00)
  • LinkedIn in/hensg
View GitHub Profile
@hensg
hensg / gist:2e9705e46be76764a273f2bc45dda154
Last active September 16, 2024 17:13
matrix-synapse metrics
Test metrics:
@hensg
hensg / gpg-ssh-setup.md
Created August 17, 2024 14:59 — 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.

@hensg
hensg / gnupg_scdaemon.md
Created April 3, 2024 14:49 — forked from artizirk/gnupg_scdaemon.md
OpenPGP SSH access with Yubikey and GnuPG

NB: This document describles a 'Old-School' way of using Yubikey with SSH

Modern OpenSSH has native support for FIDO Authentication. Its much simpler and should also be more stable with less moving parts. OpenSSH also now has support for signing arbitary files witch can be used as replacement of gnupg. Git also supports signing commits/tags with ssh keys.

Pros of FIDO

  • Simpler stack / less moving parts
  • Works directly with ssh, ssh-add and ssh-keygen on most computers
  • Simpler
  • Private key can never leave the FIDO device

Cons of FIDO

@hensg
hensg / tmux-cheatsheet.markdown
Created September 17, 2021 15:08 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@hensg
hensg / .vimrc
Created July 24, 2021 17:47
Vim configuration file
set nocompatible
call plug#begin()
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'majutsushi/tagbar'
Plug 'yggdroot/indentline'
Plug 'scrooloose/nerdtree'
Plug 'kien/ctrlp.vim'
@hensg
hensg / .tmux.conf
Last active July 24, 2021 17:48
TMUX configuration file
source-file "${HOME}/.tmux-themepack/powerline/default/cyan.tmuxtheme"
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'jimeh/tmux-themepack'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
@hensg
hensg / brazil-states.geojson
Last active March 21, 2018 21:03
Brazil States GEOJSON
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.