Skip to content

Instantly share code, notes, and snippets.

View mikaeldui's full-sized avatar
🏢
Working on something

Mikael Dúi Bolinder mikaeldui

🏢
Working on something
View GitHub Profile
@mikaeldui
mikaeldui / rso.md
Created February 25, 2022 17:59 — forked from Henrik-3/rso.md
RSO

Implementing RSO

What information Riot needs to create your RSO client?

  1. Contact Emails
  2. Name of the company/service
    • Will also appear on the RSO Login Page
  3. Logo of the company/service
    • Should scale between 275x275 and 60x60
    • Suggested is an SVG, but PNG will also work
  • Will be displayed on light and dark backgrounds (see examples below)
@mikaeldui
mikaeldui / League In-Game API.json
Created March 15, 2022 18:58 — forked from xadamxk/League In-Game API.json
All available in-game API endpoints as of Feb 1, 2020
{
"basePath": "/",
"consumes": [
"application/json",
"application/vnd.api+json",
"application/x-yaml",
"application/x-msgpack",
"application/octet-stream",
"application/x-www-form-urlencoded",
"multipart/form-data"
@mikaeldui
mikaeldui / help.console.20220322.json
Created March 20, 2022 15:35
LCU Help Console format 2022-03-20
This file has been truncated, but you can view the full file.
{
"events": {
"OnCallback": {
"description": "Fired when a callback is invoked.",
"type": {
"BindingCallbackEvent": {
"description": "Represents the parameters of a call to a provided callback.",
"fields": [
{
"id": {
@mikaeldui
mikaeldui / DataDragon.cs
Last active November 29, 2022 13:54
Show enemy details in League of Legends champ select
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Json;
using System.Text;
using System.Threading.Tasks;
internal class DataDragonClient : IDisposable
{
private HttpClient _client;
@mikaeldui
mikaeldui / macOS-F41.md
Last active July 18, 2025 14:27
Setting up macOS on Fedora F41 using Boxes

Installing macOS in Fedora (Gnome) Boxes

I need macOS to test apps for macOS. I'm running Fedora Workstation F41 (latest version while writing this). I already have a Ubuntu and a Windows VM in Gnome Boxes.

Setup

Tried to follow this guide: https://github.com/kholia/OSX-KVM Some steps in the guide could be skipped for me.

  • Clone the repository. Files from this repository are used in the following steps.

cd ~

@mikaeldui
mikaeldui / Proton VPN IPv6 Manual Setup.md
Last active March 7, 2026 15:01
Proton VPN IPv6 Manual Setup

Proton VPN IPv6 Manual Setup

Update 2026-03-07: Proton has added the IPv6 configurations mentioned below to the WireGuard config files that you can get through the web dashboard. The guide below is for historical purposes only.

Over 80% of the servers support IPv6 but only the Linux & Android apps and the browser extension support it **at the moment**.

The Linux app supports IPv6 over the VPN but still connects to the VPN server using IPv4.

It's possible to make changes to the WireGuard configs that you can get from https://account.protonvpn.com/downloads to enable IPv6.

@mikaeldui
mikaeldui / Proton Mail WDK on CF Workers.md
Last active April 22, 2025 21:39
Setting up Web Key Directory (WKD) for Proton Mail using Cloudflare Workers

Web Key Directory for Proton Mail using Cloudflare Workers

Web Key Directory is a way for non-Proton users find your keys and encrypt the messages sent to you. Proton doesn't offer this for custom domains out-of-the-box, but you can proxy requests from your domain to Proton.

  1. Create a Cloudflare Worker
  2. Put this code in the Worker:
export default {
 async fetch(request, env, ctx) {
@mikaeldui
mikaeldui / Globalping Probe Quadlet.md
Last active April 22, 2025 17:47
Globalping Probe Podman Quadlet

Globalping Probe as Quadlet

Quadlets are available since Podman 4.4, and offer an easy way to manage container and to keep them updated!

  1. Check podman --version.
  2. Create /etc/containers/systemd/globalping-probe.container with the content below:
# Equivalent to sudo podman run -d --cap-add=NET_RAW --network host --restart=always \
# --name globalping-probe globalping/globalping-probe
[Unit]
@mikaeldui
mikaeldui / Fedora Intel Optane.md
Last active April 6, 2026 01:23 — forked from gabrieljcs/lvm-cache-fedora.md
Fedora LVM Cache for Intel Optane SSD

Fedora LVM Cache for Intel Optane

Did you know that LVM has built-in support for Intel Optane? Neither did I. It's a manual configuration though and it doesn't seem to be easy to do with BTRFS, so I simply went for EXT4. (Update: it's possible to put BTRFS on LUKS on LVM with the latest Anaconda.)

Why would you want to enable the Optane cache? It supports super low latency no matter how much you use it while the big NVMe SSD is going to get slower the busier it is.

Note: I'm talking about laptop NVMe SSDs with built-in Optane cache. Mine is a Intel® Optane™ Memory H10 32GB + Intel® QLC 3D NAND SSD 512GB, M.2 80mm PCIe 3.0, which came pre-installed in my HP Spectre x360.

To start:

  1. Enter the UEFI and turn on ACHI for the SSD (I don't know if I did it as I forgot my UEFI password)
@mikaeldui
mikaeldui / media-server1.md
Last active April 22, 2025 21:53
Systemd .mount for SSHFS

Mounting SSHFS (SFTP) using systemd

Why use fstab when there's systemd?

# /etc/systemd/system/media-server1.mount
[Unit]
Description=Mount unit for Server1

[Mount]
What=USERNAME@192.168.1.2:/