Skip to content

Instantly share code, notes, and snippets.

View Kraballa's full-sized avatar
🙂
professional c++ hater/developer

Vinzent Brömauer Kraballa

🙂
professional c++ hater/developer
View GitHub Profile
@Kraballa
Kraballa / acore_mods.sql
Created March 12, 2024 18:25
AzerothCore + Autobalance Solo Scripts
-- Solo Mods
-- The following details changes to be made to make AzerothCore instances more solo friendly.
-- Individual changes to spells and mobs are required to allow solo play where usually a group of people is required.
-- These changes are intended to be used with the autobalance module.
-- ###########
-- ## INDEX ##
-- ###########
-- 1. Explanation and Philosophy
-- 2. Dungeons
@Kraballa
Kraballa / render.py
Created September 5, 2024 16:30
jinja2 static website template renderer
import shutil
import os
from jinja2 import Environment, FileSystemLoader
env = Environment(loader=FileSystemLoader('.'))
def renderFile(filename):
origPath = "files/" + filename
newPath = "output/" + filename
template = env.get_template(origPath)
@Kraballa
Kraballa / server.py
Created December 3, 2024 18:27
Fully featured commonmark markdown rendering python flask server. Supports links, images and some extensions.
from flask import Flask, request, render_template, make_response, send_file
from markupsafe import Markup
from markdown_it import MarkdownIt
from mdit_py_plugins.footnote import footnote_plugin
from mdit_py_plugins.tasklists import tasklists_plugin
from mdit_py_plugins.front_matter import front_matter_plugin # parses header info
from mdit_py_plugins.texmath import texmath_plugin
import os
md = (
@Kraballa
Kraballa / serializer.cs
Last active June 9, 2025 15:52
Serializer class for serializing and deserializing any dictionary to xml
using System.Xml.Serialization;
namespace Program
{
public static class DictSerializer<K, V> where K : notnull
{
public static void Serialize<T>(T data, string filename) where T : IDictionary<K, V>
{
Tuple<K, V> pair = new();
pair.Keys = data.Keys.ToArray();
@Kraballa
Kraballa / fuck_you.css
Created September 7, 2025 20:13
Fix Obsidian Styling
/* maken lines wider, default 700px */
:root {
--file-line-width: 900px;
}
/* delete text scaling */
.markdown-source-view * {
font-size: var(--font-text-size) !important;
}