Skip to content

Instantly share code, notes, and snippets.

some script to convert mermaid diagram to pngs from a folder that contains .mmd
used to ease the pain of manually placing stuff to make a diagram (draw.io is still cool tho)

note: no you cannot use this to convert your code into diagram directly, ask chatgpt to convert it into mermaid diagram syntax and modify the clean_mermaid_file func to properly clean the result

import pathlib
import tempfile
import subprocess
import re
import sys
@EpiclyRaspberry
EpiclyRaspberry / code.gs
Created March 25, 2025 15:02
Code to collect and print data from google forms
let answers = {
sectioncounts: [0, 0, 0, 0, 0],
answers: {
"1": [0, 0, 0, 0, 0],
"2": [0, 0, 0, 0, 0],
"3": [0, 0, 0, 0, 0],
"4": [0, 0, 0, 0, 0],
"5": [0, 0, 0, 0, 0],
"6": [0, 0, 0, 0, 0],
"7": [0, 0, 0, 0, 0],
@EpiclyRaspberry
EpiclyRaspberry / fuckautocompaction.md
Created June 14, 2024 14:42
a python script that removes "Running AutoCompaction" log on a a bedrock dedicated server

a python script that removes "Running AutoCompaction" log on a a bedrock dedicated server

import os
import subprocess
import asyncio

class BDS:
    def __init__(self):
        if os.name == "nt":
@EpiclyRaspberry
EpiclyRaspberry / boot_sec.md
Created December 11, 2023 04:46
A very simple boot sector that prints "fuck you"

boot_sec.asm:

mov ah, 0x0e

mov al, 'F'
int 0x10
mov al, 'u'
int 0x10
mov al, 'c'
int 0x10