Skip to content

Instantly share code, notes, and snippets.

/*
* loop-test
*
* Copyright (c) 2021 Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
*
* THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
* OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
*
* Permission is hereby granted to use or copy this program
* for any purpose, provided the above notices are retained on all copies.
@dwrobel
dwrobel / gist:266ad5d4e59b05ea26d8bb6725118578
Last active April 4, 2024 00:36
Updating Raspberry Pi 4 bootloader EEPROM on Fedora
# Update EEPROM on Raspberry Pi 4
# Tested on Fedora Server 36 with downstream kernel (see https://rpmfusion.org/Howto/RaspberryPi for more information)
# Author: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
# Install git and strings utilities
$ sudo dnf install /usr/bin/git /usr/bin/strings
# Clone the repository
$ git clone https://github.com/raspberrypi/rpi-eeprom.git && cd rpi-eeprom/
@dwrobel
dwrobel / linuxcnc-on-debian-buster.diff
Last active May 8, 2020 17:49
linuxcnc on debian:unstable
diff --git a/debian/configure b/debian/configure
index 2146436bac..6e1de0a9ed 100755
--- a/debian/configure
+++ b/debian/configure
@@ -72,8 +72,8 @@ EXTRA_FILES=
EXTRA_BUILD=
KERNEL_VERSION=$TARGET
DRIVERS=drivers.files.in
-PYTHON_VERSION=$(python -c 'import sys; print sys.version[:3]')
-PYTHON_VERSION_NEXT=$(python -c 'import sys; print sys.version[:2] + str(1+int(sys.version[2]))')