Skip to content

Instantly share code, notes, and snippets.

@uyjulian
Created July 11, 2026 00:05
Show Gist options
  • Select an option

  • Save uyjulian/cfeeabe344b19ab04e66f5dd3efcc140 to your computer and use it in GitHub Desktop.

Select an option

Save uyjulian/cfeeabe344b19ab04e66f5dd3efcc140 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
# SPDX-License-Identifier: MIT
import sys
with open(sys.argv[1], "rb") as f, open(sys.argv[2], "wb") as wf:
while True:
a = f.read(1056)
if len(a) != 1056:
break
wf.write(a[:-32])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment