Skip to content

Instantly share code, notes, and snippets.

View rgon's full-sized avatar

Gonzalo Ruiz rgon

View GitHub Profile
@rgon
rgon / +page.svelte
Created October 9, 2025 21:13
Monaco Editor + Svelte 5, with YAML Support, schema validation
<script lang="ts">
import YamlEditor from "./MonacoEditor.svelte";
let yamlContent = $state(`# Welcome to YAML Editor
# Start typing...
name: John Doe
age: 30
occupation: Software Engineer
skills:
@rgon
rgon / Cargo.toml
Created October 9, 2025 11:13
Gstreamer ipcpipelinesink example
[package]
name = "gstreamerIPCdemo"
version = "0.1.0"
edition = "2024"
[dependencies]
gstreamer = "0.24.2"
nix = "0.30.1"
@rgon
rgon / depgraph.py
Created September 3, 2025 10:02
`ruff analyze` python dependency graph generator
"""
A tool that, like `pyreverse -o png` creates diagrams for Python Projects. See: [pyreverse](https://pylint.readthedocs.io/en/latest/additional_tools/pyreverse/index.html)
Uses `ruff analyze` to retreive the dependency graph
Adds the following features:
+ `--cluster`: Dependency heierarchy / grouping, for a more understandable layout
+ `--filter-disconnected`: Filtering disconnected nodes, to clean up __init__s and other boilerplate
Usage:
ruff analyze graph | python3 ./depgraph.py -c -fd && xdg-open packages.svg
"""
@rgon
rgon / README.md
Created August 21, 2025 11:53
WebP/Other to JPEG Converter
@rgon
rgon / makeCanvaGridViewItemsLarger.user.js
Last active May 6, 2025 17:15
Canva Grid View larger item size - script for ViolentMonkey
// ==UserScript==
// @name Canva grid view larger items
// @namespace Violentmonkey Scripts
// @match https://www.canva.com/design/*
// @grant none
// @version 1.2
// @author rgon.es
// @description 5/5/2025, 12:19:27 PM
// ==/UserScript==
@rgon
rgon / Cargo.toml
Last active September 30, 2024 17:49 — forked from pkupper/Cargo.toml
Basic video playback in Bevy using ffmpeg-next
[package]
name = "bevy_video_demo_ffmpeg"
version = "0.1.1"
edition = "2021"
[dependencies]
bevy = "0.14.2"
ffmpeg-next = "7.1.0"
@rgon
rgon / compressOnyxFixture.go
Last active October 10, 2025 09:03
Obsidian Onyx (DMX Lighting Control) 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