Skip to content

Instantly share code, notes, and snippets.

View m0001a's full-sized avatar

m0001a

View GitHub Profile
import argparse
from pathlib import Path
from machfs import Volume
from machfs.directory import File
PARSER = argparse.ArgumentParser(
description="set the copy protection bit on a file",
)
PARSER.add_argument("input_image",
import argparse
from pathlib import Path
from dataclasses import dataclass
def from_beint(b):
return int.from_bytes(b, 'big')