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 November 14, 2024 16:23
Borderless Gaming - Assassins Creed IV - Black Flag

Changes required to the AC4BFSP.exe file to enable borderless fullscreen gaming For details on these instructions see https://defuse.ca/online-x86-assembler.htm

As long as github allow it, here is a zip file which includes the patch for quick use https://github.com/user-attachments/files/17745242/aciv_borderless_patch.zip

These instructions set the width/height to 0 which forces the game to re-calculate the screen size at the start. Aswell as settin the global IsFullscreen byte (0x2ac07d3) to 0

@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