Skip to content

Instantly share code, notes, and snippets.

View tronikelis's full-sized avatar
😳

Tronikel tronikelis

😳
View GitHub Profile
@tronikelis
tronikelis / atlassian-connect-helpers.ts
Last active August 23, 2023 13:13
atlassian lifecycle jwt shits, so i dont forget how they work lolol
async function authorizeLifecycle(authorization: string): Promise<boolean> {
const dangerousJwt = authorization.split(" ").at(-1);
if (!dangerousJwt) return false;
const decoded = jwt.decode(dangerousJwt, { complete: true });
if (!decoded) return false;
const kid = decoded.header.kid;
if (!kid) return false;

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.