Skip to content

Instantly share code, notes, and snippets.

View fischerscode's full-sized avatar
🏠
Working from home

Maximilian Fischer fischerscode

🏠
Working from home
View GitHub Profile
@fischerscode
fischerscode / serverpod_test_server.json
Last active March 21, 2023 12:03
getCurrentDatabaseDefinition for serverpod_test_server
{
"name": "serverpod_test",
"tables": [
{
"name": "serverpod_auth_key",
"schema": "public",
"tableSpace": null,
"columns": [
{
"name": "id",
# serverpod_cli would use this to tell the developer what
# a recommended steps subset does.
comment: Migrate from current to target
# A list of steps, that have to be performed, in order to
# migrate from current to target.
# If a step fails, the transaction is canceled and the migration failed.
# Tables might be prefixed with the schema. If not, `public` is assumed.
steps:
- renameTable:
@fischerscode
fischerscode / install.md
Created October 25, 2023 12:22
Installing Miniconda

Installation

  1. Installiere Miniconda
  2. Öffne die Eingabeaufforderung und teste mit conda -V die Installation.
  3. Erstelle eine neue Python Testumgebung: conda create --name python-lernen
  4. Aktiviere die Umgebung: conda activate python-lernen
  5. Installiere JupyterLab: conda install -c conda-forge jupyterlab
  6. Starte JupyterLab: jupyter lab
    • Es müsste sich automatisch ein Browserfenster öffnen. (manuell)
  7. Öffne Links einen beliebigen Ordner und Erstelle mit grafik -> grafik ein Jupyter Notebook.
@fischerscode
fischerscode / mcfx_extractor.py
Created May 13, 2025 21:25
Extracts all files from a .mcfx SQLite package into a directory.
#!/usr/bin/env python3
"""
mcfx_extractor.py: Extracts all files from a .mcfx SQLite package into a directory.
The .mcfx format is a SQLite database with a table:
Files(Filename TEXT PRIMARY KEY, Data BLOB, LastModified INTEGER)
This script reads each entry and writes it out preserving folder structure and timestamps.
Usage: