Skip to content

Instantly share code, notes, and snippets.

View kirides's full-sized avatar

kirides

View GitHub Profile
@kirides
kirides / DbContextPooling and Scoped dependencies.cs
Last active January 23, 2025 13:30
A Example on how Pooled DbContext instances may share their data with Interceptors
Microsoft.Data.Sqlite
Microsoft.EntityFrameworkCore
Microsoft.EntityFrameworkCore.ChangeTracking
Microsoft.EntityFrameworkCore.Diagnostics
Microsoft.EntityFrameworkCore.Infrastructure
Microsoft.Extensions.DependencyInjection
System.Threading.Tasks
void Main()
{
@kirides
kirides / assembly instructions to patch.md
Last active May 2, 2025 09:09
Borderless Gaming - Assassins Creed IV - Black Flag
@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