Skip to content

Instantly share code, notes, and snippets.

View marcio's full-sized avatar
🏠
Working from home

Marcio Gasparotto marcio

🏠
Working from home
  • Ezy Collect
  • Sydney, Australia
View GitHub Profile
@marcio
marcio / logid.cfd
Created November 6, 2022 02:38
Logid Configuration
// File location: /etc/logid.cfg
// All configs (Keys) are based on GNOME running on UBUNTU
devices: ({
name: "Wireless Mouse MX Master 3";
smartshift: {
on: true;
threshold: 15;
};
@marcio
marcio / token-generator.js
Created September 6, 2020 03:25 — forked from ziluvatar/token-generator.js
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');
@marcio
marcio / token-generator.js
Created September 6, 2020 03:25 — forked from ziluvatar/token-generator.js
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');