Skip to content

Instantly share code, notes, and snippets.

View elshanx's full-sized avatar
🚀
always learning

Elshan Alkhabaz elshanx

🚀
always learning
View GitHub Profile
@ziluvatar
ziluvatar / token-generator.js
Last active July 24, 2024 16:53
Example of refreshing tokens with jwt
/**
* Example to refresh tokens using https://github.com/auth0/node-jsonwebtoken
* It was requested to be introduced at as part of the jsonwebtoken library,
* since we feel it does not add too much value but it will add code to mantain
* we won't include it.
*
* I create this gist just to help those who want to auto-refresh JWTs.
*/
const jwt = require('jsonwebtoken');
@parmentf
parmentf / GitCommitEmoji.md
Last active July 26, 2024 15:56
Git Commit message Emoji
@tuxfight3r
tuxfight3r / vim-shortcuts.md
Last active July 26, 2024 08:26
VIM SHORTCUTS

VIM KEYBOARD SHORTCUTS

MOVEMENT

h        -   Move left
j        -   Move down
k        -   Move up
l        -   Move right
$        -   Move to end of line
0        -   Move to beginning of line (including whitespace)