Skip to content

Instantly share code, notes, and snippets.

View rgon's full-sized avatar

Gonzalo Ruiz rgon

View GitHub Profile
@rgon
rgon / compressOnyxFixture.go
Created March 22, 2021 17:48
Onyx Fixture Compressor and Packager: creates .Fixture files from uncompressed folders.
///bin/true; exec /usr/bin/env go run "$0" "$@"
// Example:
// 1. Unzip the fixtureYouWishToModify.Fixture
// 2. Modify the fixture by editing MANUFACTURER/FIXTURE/FIXTURE.xml
// 3. Call this script passing said uncompressed folder as a parameter
// USAGE: ./compressOnyxFixture.go uncompressedFixtureFolder
// 4. Your uncompressedFixtureFolder.Fixture file will be ready!
// With the help of: https://stackoverflow.com/a/63233911 and https://unix.stackexchange.com/a/577613