Skip to content

Instantly share code, notes, and snippets.

@ellsies
ellsies / README.md
Last active January 26, 2026 01:34
Crackover (Complete free version of crossover)
@jabedzaman
jabedzaman / spotify.js
Last active June 16, 2024 22:37
Fetch currently playing song on Spotify
// pages/api/spotify.
import querystring from 'querystring';
const {
NEXT_PUBLIC_SPOTIFY_CLIENT_ID: client_id,
NEXT_PUBLIC_SPOTIFY_CLIENT_SECRET: client_secret,
NEXT_PUBLIC_SPOTIFY_REFRESH_TOKEN: refresh_token,
} = process.env;
@ygotthilf
ygotthilf / jwtRS256.sh
Last active January 26, 2026 13:38
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub