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 / 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 / gist:4c1cf3f7d5f92bf59a2f088b689940b8
Created June 4, 2024 22:06
Tentative fix for rtl8192eu-1.0 DKMS source for Linux 6.9 (Debian)
From: Juan Manuel Méndez Rey <vejeta@gmail.com>
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 <vejeta@gmail.com>
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
*
*/
@vejeta
vejeta / nvidia-340xx-fix-linux-6.3.patch
Created May 16, 2023 12:43
Tentative fix for nvidia-legacy-340xx-kernel-dkms 340.108-18 module for Linux 6.3.x
unchanged:
--- a/nv-mmap.c 2023-05-16 13:39:04.867479247 +0200
+++ b/nv-mmap.c 2023-05-16 13:47:10.858833967 +0200
@@ -312,7 +312,7 @@ int nvidia_mmap(
goto done;
}
- vma->vm_flags |= VM_IO;
+ vm_flags_set(vma, VM_IO);
}
@vejeta
vejeta / nvidia-340xx-fix-linux-6.2.patch
Created March 13, 2023 15:05
Tentative fix for nvidia-legacy-340xx-kernel-dkms 340.108-17 module for Linux 6.2.x
From: Juan Manuel Méndez Rey <vejeta@gmail.com>
Date: Mon, 13 Mar 2023 15:49:30 +0000
Subject: [PATCH] Tentative fix for NVIDIA 340.108 DKMS source for Linux 6.2
Credit goes to Joan Bruguera <joanbrugeram@gmail.com> for the inspiration patch:
"Tentative fix for NVIDIA 470.161.03 driver for Linux 6.2"
---
nv-acpi.c | 19 ++++++++++++++++---
name: tempchromecsrffix
version: 0.1.0
patches:
openedx-lms-production-settings: |
DCS_SESSION_COOKIE_SAMESITE = 'Lax'
openedx-cms-production-settings: |
DCS_SESSION_COOKIE_SAMESITE = 'Lax'
@vejeta
vejeta / cucumber_scala_emacs.md
Last active February 28, 2016 04:13
Tests with Cucumber, and Support with Scala, SBT and Emacs

Introduction

When I first heard about cucumber, it was in a emacs related post (http://www.47deg.com/blog/scala-development-with-emacs)

There, ldeck asked about using cucumber-scala with emacs... and then after some time I started the research about cucumber.

Let's learn a bit about Cucumber