Skip to content

Instantly share code, notes, and snippets.

View chrodriguez's full-sized avatar

Christian Rodriguez chrodriguez

View GitHub Profile
@matiferrigno
matiferrigno / jwt.jq
Last active September 21, 2023 15:56
# ~/.jq/jwt.jq
#
# Ex.
# jq -R 'import "jwt" as jwt; jwt::decode' /tmp/jwt_to_decode
#
# this is a alternative to:
# jq -R 'split(".") | .[0],.[1] | @base64d | fromjson' /tmp/jwt_to_decode
#
# still possible to use an alias for either command but this appears to be more scalable.

Compartiendo el portapapeles del Sistema Operativo

Problema: quiero compartir texto copiado dentro de vim con otras aplicaciones o viceversa.

Solucion:

" dentro de nuestro .vimrc
set clipboard=unnamed      " Share system clipboard by default on OS X
set clipboard+=unnamedplus " and on Linux