Skip to content

Instantly share code, notes, and snippets.

View overcq's full-sized avatar

Janusz Augustyński overcq

View GitHub Profile
@overcq
overcq / vmware-modules-17.6.3.patch
Last active May 4, 2025 07:15
Patch to work VMware Workstation modules on newest Linux kernel
--- a/vmmon-only/Makefile.kernel
+++ b/vmmon-only/Makefile.kernel
@@ -18,10 +18,10 @@
#
##########################################################
-CC_OPTS += -DVMMON -DVMCORE
+CC_OPTS += -DMODULE -DVMMON -DVMCORE
INCLUDE := -I$(SRCROOT)/include -I$(SRCROOT)/include/x86 -I$(SRCROOT)/common -I$(SRCROOT)/linux
--- a/gtk/gtkmenushell.c
+++ b/gtk/gtkmenushell.c
@@ -142,6 +142,7 @@
* if the user moves the mouse over an unselectable menuitem.
*/
guint in_unselectable_item : 1;
+ guint button_down: 1;
};
static void gtk_menu_shell_set_property (GObject *object,
@overcq
overcq / wpa_supplicant-2.10.patch
Last active April 6, 2023 10:44
Patch to work newest wpa_supplicant on old WiFi card
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -1883,7 +1883,7 @@
static void wpas_ext_capab_byte(struct wpa_supplicant *wpa_s, u8 *pos, int idx)
{
- bool scs = true, mscs = true;
+ bool scs = false, mscs = false;
*pos = 0x00;
@overcq
overcq / nvidia-drivers-390.144-r2.patch
Last active May 29, 2025 11:51
Patch to work old nvidia-drivers in newest Linux kernel
--- a/kernel/Kbuild
+++ b/kernel/Kbuild
@@ -76,6 +76,7 @@
EXTRA_CFLAGS += -DNV_CONFIG_X86_UV
endif
+KBUILD_CFLAGS_MODULE := $(EXTRA_CFLAGS) -I/usr/src/linux/include/linux -I/usr/src/linux/fs/proc --include internal.h
#
# The conftest.sh script tests various aspects of the target kernel.
@overcq
overcq / filetypes.common
Last active April 30, 2025 15:12
Color scheme for Geany text editor
# For complete documentation of this file, please see Geany's main documentation
[styling]
# use foreground;background;bold;italic or named_style,bold,italic
# used for filetype All/None
default=default
# 3rd selection argument is true to override default foreground
# 4th selection argument is true to override default background
selection=selection
@overcq
overcq / main.cx
Last active October 22, 2022 07:01
Simple HTTP/1.1 and HTTP/2 client in OUX/C+
//-*-C-*-
N E_main_Q_http_req_ret_count;
void
http_req_ret_func( N connection_i
){ E_main_Q_http_req_ret_count++;
V0( unlink( E_net_http_S_connect[ connection_i ].file_name ) ){}
E_net_http_S_connect[ connection_i ].ret_func = 0;
}
@overcq
overcq / main.cx
Last active October 22, 2022 07:06
OUX/C+ ‟Hello world” program
//-*-C-*-
/*******************************************************************************
* ___ [obszar]
* ¦OUX¦ [system programowania]
* ¦/C+¦ [rodzaj składnika]
* --- [nazwa składnika]
* [tytuł elementu]
* ©overcq on ‟Gentoo Linux 17.1” “x86_64” 2022‒10‒22 L
*******************************************************************************/
int