Skip to content

Instantly share code, notes, and snippets.

@OPVL
OPVL / unblock_steam_ports.sh
Created January 8, 2026 14:23
Fedora Steam Link Firewall Rules
#!/bin/bash
# Author: OPVL (08/01/2026)
# This script is designed for Fedora users to manage Steam ports in the firewall.
# You will need to run this script if you've been able to pair your Steam Link
# but unable to run a network test. You will have seen a message like:
# Network Test Failed - Couldn't connect to {HOSTNAME} on port 27031
# USAGE:
# - Download the script to your Fedora machine
@OPVL
OPVL / quantity_unit.py
Created July 13, 2024 15:29
Script to import quantity units & associated conversion factors in to grocy, pythonically
### This script adds metric (UK) units and unit conversions to grocy
### inspired by https://gist.github.com/randompherret/f772d43cb618b55997f203e023631d5f
### this script is by no means perfect however it can handle failed runs and restarting midway through
### usage: python quantity_units.py
### make sure to set the environment variables in a .env file in the same directory as this script
### GROCY_API_KEY and GROCY_BASE_URL are required
### LOG_TO_FILE and DELETE_EXISTING_UNITS are optional
### LOG_TO_FILE will log the added units and conversions to a file (not used for anythning just interesting)
### DELETE_EXISTING_UNITS will delete all existing units in grocy before adding new ones