Skip to content

Instantly share code, notes, and snippets.

View vejeta's full-sized avatar
🎯
Focusing

Juan Manuel Méndez Rey vejeta

🎯
Focusing
View GitHub Profile
@vejeta
vejeta / stremio-nonroot-secure.sh
Last active October 28, 2025 21:02
Running stremio in wolfi
#!/bin/bash
# stremio-nonroot-secure.sh
# Secure nonroot execution for Stremio in production environments
# Implements security best practices for containerized GUI applications
set -e
# Detect system configuration
VIDEO_GID=$(stat -c "%g" /dev/dri/card0)
RENDER_GID=$(stat -c "%g" /dev/dri/renderD128)
@vejeta
vejeta / kernel-6.17-fixes.patch
Last active October 19, 2025 01:46
Patch for broadcom-sta-6.30.223.271/wl-kernel-6.17-fix.patch
--- a/src/wl/sys/wl_cfg80211_hybrid.c
+++ b/src/wl/sys/wl_cfg80211_hybrid.c
@@ -67,7 +67,7 @@
static s32 wl_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev,
struct cfg80211_scan_request *request);
#endif
-static s32 wl_cfg80211_set_wiphy_params(struct wiphy *wiphy, u32 changed);
+static int wl_cfg80211_set_wiphy_params(struct wiphy *wiphy, int unused, u32 changed);
static s32 wl_cfg80211_join_ibss(struct wiphy *wiphy, struct net_device *dev,
struct cfg80211_ibss_params *params);
@vejeta
vejeta / rtl8192eu-1.0-fix-linux-6.16.x.patch
Created August 25, 2025 00:55
Tentative fix for rtl8192-eu module for Linux 6.16.x
--- rtl8192eu-1.0/include/osdep_service_linux.h 2025-06-08 17:25:56.726822818 +0200
+++ b/include/osdep_service_linux.h 2025-08-25 02:46:08.747420075 +0200
@@ -360,7 +360,7 @@
#endif
{
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0))
- _timer *ptimer = from_timer(ptimer, in_timer, timer);
+ _timer *ptimer = timer_container_of(ptimer, in_timer, timer);
#else
_timer *ptimer = (_timer *)cntx;
@vejeta
vejeta / broadcom-sta-fix-6.16.x.patch
Last active September 15, 2025 01:08
Tentative fix for broadcom-sta-dkms 6.30.223.271-27 module for Linux 6.16.x
--- a/src/wl/sys/wl_linux.c
+++ b/src/wl/sys/wl_linux.c
@@ -2378,7 +2378,7 @@
) {
wl_timer_t *t =
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
- from_timer(t, tl, timer);
+ timer_container_of(t, tl, timer);
#else
(wl_timer_t *)data;
@vejeta
vejeta / nvidia-340xx-fix-linux-6.14.0.patch
Created March 28, 2025 00:00
Tentative patch for nvidia-340xx for Linux Kernel 6.14.x in Debian
--- nvidia-legacy-340xx-340.108/nv-drm.c 2025-03-28 00:40:02.145469312 +0100
+++ b/nv-drm.c 2025-03-28 00:32:41.586697382 +0100
@@ -198,7 +198,10 @@
.name = "nvidia-drm",
.desc = "NVIDIA DRM driver",
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 14, 0)
+ // Rel. commit. "drm: remove driver date from struct drm_driver and all drivers" (Jani Nikula, 4 Dec 2024)
.date = "20150116",
+#endif
@vejeta
vejeta / rtl8192eu-fix-linux-6.13.0.patch
Last active January 24, 2025 23:50
Tentative fix for rtl8192eu driver for Linux Kernel 6.13.x in Debian
From b9f21a6ff209edc220b2fc4ca610eb54595f218d Mon Sep 17 00:00:00 2001
From: Franz Eitzinger <[email protected]>
Date: Mon, 2 Dec 2024 22:51:54 +0100
Subject: [PATCH] Adapt to Kernel 6.13.0
Pass net_device to .set_monitor_channel
---
os_dep/linux/ioctl_cfg80211.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
@vejeta
vejeta / broadcom-sta-fix-linux-6.12.1.patch
Last active June 10, 2025 16:23
Tentative fix for broadcom-sta-dkms 6.30.223.271-24 module for Linux 6.12.1
--- broadcom-sta-6.30.223.271/src/wl/sys/wl_linux.c
+++ b/src/wl/sys/wl_linux.c
59c59
< #include <asm/unaligned.h>
---
> #include <linux/unaligned.h>
@vejeta
vejeta / nvidia-340xx-fix-linux-6.10.4.patch
Created August 12, 2024 20:43
Tentative fix for nvidia-legacy-340xx-kernel-dkms 340.108-21 module for Linux 6.10.4
--- nvidia-legacy-340xx-340.108/conftest.sh 2024-08-12 22:17:58.885145704 +0200
+++ b/conftest.sh 2024-08-12 22:20:26.971071281 +0200
@@ -197,7 +197,8 @@
build_cflags() {
BASE_CFLAGS="-O2 -D__KERNEL__ \
-DKBUILD_BASENAME=\"#conftest$$\" -DKBUILD_MODNAME=\"#conftest$$\" \
--nostdinc -isystem $ISYSTEM"
+-nostdinc -isystem $ISYSTEM \
+-Wno-implicit-function-declaration -Wno-strict-prototypes -Wno-incompatible-pointer-types"
@vejeta
vejeta / rtl8192eu-1.0-fix-linux-6.9.x.patch
Last active October 30, 2025 09:51
Tentative fix for rtl8192eu-1.0 DKMS source for Linux 6.9 (Debian)
From: Juan Manuel Méndez Rey <[email protected]>
Date: Mon, 04 June 2024 23:58:30 +0000
Subject: [PATCH] Tentative fix for rtl8192eu-1.0 DKMS source for Linux 6.9
--- a/os_dep/linux/ioctl_cfg80211.c 2024-06-04 22:53:56.300912246 +0200
+++ b/os_dep/linux/ioctl_cfg80211.c 2024-06-04 23:40:49.117002360 +0200
@@ -459,10 +459,10 @@
,0
#endif
,0
@vejeta
vejeta / nvidia-340xx-fix-linux-6.5.patch
Created September 18, 2023 20:18
Tentative fix for nvidia-legacy-340xx-kernel-dkms 340.108-19 module for Linux 6.5.x
From: Juan Manuel Méndez Rey <[email protected]>
Date: Mon, 18 Sep 2023 22:18:30 +0000
Subject: [PATCH] Tentative fix for NVIDIA 340.108 DKMS source for Linux 6.5
--- nvidia-legacy-340xx-340.108/nv-linux.h 2019-12-11 23:04:24.000000000 +0100
+++ b/nv-linux.h 2023-09-18 21:41:04.512972716 +0200
@@ -2093,7 +2093,24 @@ static inline NvU64 nv_node_end_pfn(int
*
*/