Skip to content

Instantly share code, notes, and snippets.

View shameerahamed's full-sized avatar
♻️
Relearn

Shameer shameerahamed

♻️
Relearn
  • Singapore ✈ ✈ ✈
View GitHub Profile
@shameerahamed
shameerahamed / cloudflareworker-verifyjwt.js
Created October 3, 2022 10:33 — forked from bcnzer/cloudflareworker-verifyjwt.js
Sample Cloudflare worker that gets the JWT, ensures it hasn't expired, decrypts it and returns a result
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
// Following code is a modified version of that found at https://blog.cloudflare.com/dronedeploy-and-cloudflare-workers/
/**
* Fetch and log a request
* @param {Request} request
*/
@shameerahamed
shameerahamed / Water Reminder.js
Created May 11, 2019 05:10 — forked from schl3ck/Water Reminder.js
A scriptable script to remind you to drink water and record it. The data gets overridden after 2 days and is lost forever. Features: • Highly customiseable (interval of notifications, repeated notifications if I haven't responded, sound, preset list of how much you want to write down,...) • Works completely in notifications, no need to open the …
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: blue; icon-glyph: tint;
/*******************************************
* *
* __ __ _ *
* \ \ / /_ _| |_ ___ _ _ *
* \ \/\/ / _` | _/ -_) '_| *
* ___ \_/\_/\__,_|\__\___|_| *
* | _ \___ _ __ (_)_ _ __| |___ _ _ *