Skip to content

Instantly share code, notes, and snippets.

View agungsugiarto's full-sized avatar
:octocat:
On fire

Agung Sugiarto agungsugiarto

:octocat:
On fire
View GitHub Profile
@agungsugiarto
agungsugiarto / jwt-expiration.md
Created August 17, 2020 07:00 — forked from soulmachine/jwt-expiration.md
How to deal with JWT expiration?

First of all, please note that token expiration and revoking are two different things.

  1. Expiration only happens for web apps, not for native mobile apps, because native apps never expire.
  2. Revoking only happens when (1) uses click the logout button on the website or native Apps;(2) users reset their passwords; (3) users revoke their tokens explicitly in the administration panel.

1. How to hadle JWT expiration

A JWT token that never expires is dangerous if the token is stolen then someone can always access the user's data.

Quoted from JWT RFC:

@agungsugiarto
agungsugiarto / Voice-Controlled-IoT.md
Created April 17, 2018 13:57 — forked from xmfcx/Voice-Controlled-IoT.md
OK Google, Arduino Uno, ESP8266, Blynk, IFTTT, Google Assistant Integration Tutorial

OK Google, Arduino Uno, ESP8266, Blynk, IFTTT, Google Assistant Integration Tutorial

This is a tutorial to realize following video: https://www.youtube.com/watch?v=PBiOGvJRPqg

Requirements:

  • Android phone Marsmallow or higher or Apple phone (for google assistant)
  • IFTTT app
  • Blynk app
  • Arduino UNO
  • ESP8266 Wifi module

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@echo off
title Activate Microsoft Office 2016 ALL versions for FREE!&cls&echo ============================================================================&echo #Project: Activating Microsoft software products for FREE without software&echo ============================================================================&echo.&echo #Supported products:&echo - Microsoft Office Standard 2016&echo - Microsoft Office Professional Plus 2016&echo.&echo.&(if exist "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")&(if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")&(for /f %%x in ('dir /b ..\root\Licenses16\proplusvl_kms*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir /b ..\root\Licenses16\proplusvl_mak*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&echo.&echo ============================================================================&ech