Skip to content

Instantly share code, notes, and snippets.

View MohrJonas's full-sized avatar
💻
Searching on StackOverflow

Jonas Mohr MohrJonas

💻
Searching on StackOverflow
View GitHub Profile
@MohrJonas
MohrJonas / PreForm.md
Created October 15, 2026 17:29
Run FormLab's PreForm under Linux

!!! These steps work as of 10/15/2026 and will likely change in the future. !!!

I use Bottles installed natively under NixOS, but this should work no matter the OS.

Step 1: icuuc.dll

PreForm requires icuuc.dll. This does not ship with wine or PreForm.
Therefore, I extracted it from a Windows 10 ISO.

Steps:

@MohrJonas
MohrJonas / edid.nix
Created September 6, 2026 11:05
Load custom EDID in NixOS
boot.kernelPatches = [
{
name = "edid-loader-fix-config";
patch = null;
extraConfig = ''
FW_LOADER y
'';
}
];
@MohrJonas
MohrJonas / SrcGen.cs
Created March 29, 2026 21:14
C# Source Generator
using System.Text.RegularExpressions;
using System.Xml;
using Microsoft.CodeAnalysis;
namespace SrcGen;
[Generator]
public class SrcGenGenerator : IIncrementalGenerator
{
private static readonly (Regex regex, Type[] argTypes)[] eventHandlersTypesTable = [
@MohrJonas
MohrJonas / printer.cfg
Last active May 4, 2022 10:08
Wolpertinger Printer Klipper config
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 500
max_z_velocity: 5
max_z_accel: 100
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_3C001B000350534E4E303720-if00
#!/usr/bin/bash
RED='\033[0;31m'
NC='\033[0m'
GREEN='\033[0;32m'
PACKAGE_MANAGER="UNDEF"
USE_SNAP=false
USE_FLATPAK=false
USE_AUR=false
@MohrJonas
MohrJonas / Parsable Desktop File
Last active January 6, 2021 13:47
.desktop file with brackets for easy formatting in Kotlin
[Desktop Entry]
Name=%s
Exec=%s
Icon=%s
Type=Application
Terminal=true
Categories=%s
%! suppress = PackageCouldNotBeFound
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{listings}
\usepackage{xcolor}
\usepackage{solarized-dark}
\author{?????}
\date{\today}