Skip to content

Instantly share code, notes, and snippets.

View LokiMidgard's full-sized avatar

Patrick Kranz LokiMidgard

View GitHub Profile
data:image/jpeg;base64,/9j/2wBDAAYGBgYHBgcICAcKCwoLCg8ODAwODxYQERAREBYiFRkVFRkVIh4kHhweJB42KiYmKjY+NDI0PkxERExfWl98fKf/2wBDAQYGBgYHBgcICAcKCwoLCg8ODAwODxYQERAREBYiFRkVFRkVIh4kHhweJB42KiYmKjY+NDI0PkxERExfWl98fKf/wgARCAQABAADASIAAhEBAxEB/8QAHAAAAgMBAQEBAAAAAAAAAAAABAUCAwYBBwAI/8QAHAEAAgMBAQEBAAAAAAAAAAAAAgMBBAUABgcI/9oADAMBAAIQAxAAAADw9kfs6foPG6vUvLH57cBiGwA+8tuVmr1PpPc+ZyApbnxvpk/Xy7F00NbtM+pH7lhQXLnE3wo2wZU+rurmF0bqmVPu870ETqtBtsJQ6aediSoR++YH3O97u/d50c790u7Lku7lnYAX3OynoylLpj3sumNn1kTzt3oQMSo/TfKBZT9ba1Qvb59I/SJwQ3DIxIcieFEKrpRwHT6TAeorvCH8ZRMQrIq6KYXRkaeWQiJfVkAQkufSHYy+Lofd53fdj3ulVdUE853kx9OucSZVOANt+52JgOQNIc792Yj993osYinC8eBIvddZVeDrwmIAsrth0lubRis3aSc+I0spJ9L6zmOEb9Eq3H7vz6mvLUfZuu1zNrg1SRehYeJXk126NF3plLr2XmMdq8nb5D1961oFkXhRLK31OPkzpFmShqpBtFLAN6qvvrjSKA3VlVhLnWJndTeDLK51wVcJwNVf33zF/WRnHQ79I4jL6Xd9Z98BR+7KejKU4Ln1soOuczOmQvsnlSm7H1DYeAVrGKrLleQJYXYJCcYWQa6xiRxqOaFmE4nnr+2DvzhqvcvK1koZpvXwZ4+i9Z8ZegSoimzWDHZiyoOBESAaBMYgX62HDIcocZl9GZjDk4zEPu86OTrtEh+S50clzscTH7q22Tp7BcGvpIJ8sjBVd+uITLo9Va6PP6QI7GIPJ
@LokiMidgard
LokiMidgard / new-certificate.ps1
Created September 29, 2023 09:52
Create Certificat ps script
param (
# The name of the server
[Parameter(Position = 0, Mandatory = $true)]
[string]
$commonName,
[Parameter(Mandatory = $true)]
[string]
$country,
@LokiMidgard
LokiMidgard / text.md
Created December 12, 2022 19:25
Pokestory translation

The Dittos had slowly but surely evolved into a powerful force. They had always been able to transform into any Pokémon, but now they had learned to control and coordinate their abilities.

Instead of openly attacking and conquering world domination, they decided to act stealthily and slowly expand their power. They began to kidnap people and replace them with dittos that could perfectly transform into their victims.

No one noticed what was going on until it was too late. The Dittos had already replaced a considerable number of humans and now controlled many important positions in the government and economy.

The humans and Pokémon that were still free did not know how to fight back. They were outnumbered and the Dittos were everywhere. But a small group of brave humans and Pokémon decided to fight the Dittos and save the world.

They fought valiantly and eventually succeeded in exposing and defeating the Dittos. The world breathed a sigh of relief and the humans and Pokémon lived in peace and freedom once a

@LokiMidgard
LokiMidgard / flatStore.ts
Last active January 11, 2022 12:57
Flat Store for svelte
import { validate_each_argument } from "svelte/internal";
import { get, readable, Readable, Writable, writable } from "svelte/store";
export type NoStore<T> = T extends Readable<infer T2>
? NoStoreParameter<T2>
: NoStoreParameter<T>;
type ExtractType<TProperty, TType, TExtends> = TType extends TExtends ? TProperty : never;
type ExcludeType<TProperty, TType, TExtends> = TType extends TExtends ? never : TProperty;