This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from io import BytesIO | |
class Patch(): | |
def __init__(self, offset: int, original: str, new: str): | |
self.offset = offset | |
self.original = bytes.fromhex(original) | |
self.new = bytes.fromhex(new) | |
def __str__(self): | |
return f"[\"{self.original.hex()}\" -> \"{self.new.hex()}\" (at {self.offset})]" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Useful for trackers (Dirtywave M8, Littlegptracker, ...) | |
# Rewrite of https://github.com/mackemint/sample_converter_m8tracker | |
from pydub import AudioSegment, effects | |
from pydub.exceptions import CouldntDecodeError | |
from argparse import ArgumentParser | |
import os, sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for VOLUME in $@; do | |
docker volume inspect $VOLUME >/dev/null && \ | |
docker run --rm -v $VOLUME:/_data -v $PWD:/backup busybox tar czf backup/$VOLUME.tar.gz _data && \ | |
echo "OK: $VOLUME" | |
done |