Skip to content

Instantly share code, notes, and snippets.

View overcq's full-sized avatar

Janusz Augustyński overcq

View GitHub Profile
@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 June 29, 2024 22:24
Patch to work old nvidia-drivers in newest Linux kernel
--- a/kernel/common/inc/nv-procfs.h
+++ b/kernel/common/inc/nv-procfs.h
@@ -113,7 +113,7 @@
})
#if defined(NV_PDE_DATA_PRESENT)
-# define NV_PDE_DATA(inode) PDE_DATA(inode)
+# define NV_PDE_DATA(inode) pde_data(inode)
#else
# define NV_PDE_DATA(inode) PDE(inode)->data
@overcq
overcq / filetypes.common
Last active March 19, 2023 15:54
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