Skip to content

Instantly share code, notes, and snippets.

View mmtrt's full-sized avatar

Taqi Raza mmtrt

  • Pakistan
  • 04:15 (UTC +05:00)
View GitHub Profile
{
"file_format_version" : "1.0.0",
"ICD": {
"library_path": "/usr/\$LIB/libGLX_nvidia.so.0",
"api_version" : "1.2.155"
}
}
From 635a7d18629ae7498648193b40de5fddd23ca2cb Mon Sep 17 00:00:00 2001
From: Firerat <firer4t@googlemail.com>
Date: Fri, 6 Apr 2018 23:50:21 +0100
Subject: [PATCH] winecfg: Toggle upstream CSMT implementation
Logic on the toggle is now inverted
'on' disables upstream's CSMT
'off' lets upstream wine use its default
---
programs/winecfg/resource.h | 2 +-
#!/bin/bash
# Download and build League patched glibc + wine-staging deb script.
# glibc version
cver=2.27
# wine-staging version
@mmtrt
mmtrt / acrordr
Last active January 29, 2024 12:57
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\\Software\\Adobe\\Acrobat Reader\\DC\\AVGeneral]
"bisFirstLaunch"=dword:00000000
"bRHPSticky"=dword:00000001
"bToggleCustomOpenExperience"=dword:00000001
"bToggleCustomSaveExperience"=dword:00000001
[HKEY_CURRENT_USER\\Software\\Adobe\\Acrobat Reader\\DC\\ExitSection]
"bLastExitNormal"=dword:00000000
diff --git a/dlls/ntdll/thread.c b/dlls/ntdll/thread.c
index c5b2008e44..96ca266921 100644
--- a/dlls/ntdll/thread.c
+++ b/dlls/ntdll/thread.c
@@ -268,6 +268,77 @@ static void set_process_name( int argc, char *argv[] )
}
+#ifdef __i386__
+#include <asm/ldt.h>
From acd209d6039f2492bdc8aca3d15bb1b268b04f1a Mon Sep 17 00:00:00 2001
From: Alexandre Julliard <julliard@winehq.org>
Date: Wed, 20 May 2020 15:51:19 +0200
Subject: [PATCH] ntdll: Move setting the process name to the Unix library.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
Modified-by: Taqi Raza
---
dlls/ntdll/thread.c | 65 --------------------------------------
dlls/ntdll/unix/loader.c | 67 ++++++++++++++++++++++++++++++++++++++++
@mmtrt
mmtrt / fixdd
Last active April 28, 2024 01:14
[ROOT] [Magisk] [Service.d] [Script] [Fix] DriveDroid on Android 9+
#!/bin/sh
# run while loop for boot_completed status & sleep 10 needed for magisk service.d
while [ "$(getprop sys.boot_completed | tr -d '\r')" != "1" ]; do sleep 1; done
sleep 10
# save currently active function name
echo "$(ls -al /config/usb_gadget/g1/configs/b.1/)" | grep -Eo f1.* | awk '{print $3}' | cut -d/ -f8 > /data/adb/.fixdd
# loop
@ECHO OFF
@SETLOCAL EnableDelayedExpansion
set LF=^& ECHO.
CD INI
for /F "delims=" %%G in ('findstr /n "=Maps" MPMaps.ini') do set "lastoccur=%%G"
set lastnum=%lastoccur:~4,3%
set lastmap=%lastoccur:~7,100%
set lastmapap=%lastoccur:~4,100%
set /a mpn1=%lastnum%+1