Skip to content

Instantly share code, notes, and snippets.

View kirides's full-sized avatar

kirides

View GitHub Profile
@kirides
kirides / jwt_middleware.go
Last active June 22, 2023 13:54
Golang gin-gonic Jwt Bearer Middleware
package main
/*
DESCRIPTION:
- built on top of golang-jwt
- Supports multiple audiences and issuers
- Has h.RequireRole("role")-Middleware that ensures certain role availability
USAGE:
@kirides
kirides / build-mpv_silicon.sh
Created February 28, 2023 19:53 — forked from dbrookman/build-mpv_silicon.sh
How to build mpv & mpv.app on an Apple silicon (M1 / M2) Mac
#!/usr/bin/env bash
# builds mpv & mpv.app on Apple silicon (M1 / M2) Macs
# run this script from the root directory of the mpv repo
# if anything fails, gtfo
set -ex
meson setup build
meson compile -C build