Skip to content

Instantly share code, notes, and snippets.

@hensg
hensg / brazil-states.geojson
Last active March 21, 2018 21:03
Brazil States GEOJSON
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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 / .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-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 / 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