Skip to content

Instantly share code, notes, and snippets.

@lextra2
Last active June 17, 2026 01:28
Show Gist options
  • Select an option

  • Save lextra2/801d487cb8721231dfc1760db2ebdce5 to your computer and use it in GitHub Desktop.

Select an option

Save lextra2/801d487cb8721231dfc1760db2ebdce5 to your computer and use it in GitHub Desktop.
@ECHO OFF
START powershell Start-Process -WindowStyle Hidden -FilePath "C:\Users\ULTRA\AppData\LATENCY\DPCLAT.exe"
EXIT
RD /S /Q "%localappdata%\AMD\DX9Cache", "%localappdata%\AMD\DxCache", "%localappdata%\AMD\DxcCache", "%localappdata%\AMD\OglCache", "%localappdata%\AMD\VkCache"
RD /S /Q "%localappdata%\NVIDIA", "%appdata%\NVIDIA"
techpowerup.com##.s-
techpowerup.com##.todayslist
techpowerup.com##.contnt:style(width: 100% !important)
techpowerup.com##.patreon-previews
techpowerup.com##.pinned-news2
forums.guru3d.com##.sidebar
forums.guru3d.com##.mainContent:style(width: 100% !important)
phoronix.com###sidebar-wrap
phoronix.com###menuwrap
phoronix.com###main:style(margin-right: 0px !important)
old.reddit.com###eu-cookie-policy
old.reddit.com###sr-header-area
old.reddit.com###header-bottom-right
old.reddit.com##.footer-parent
old.reddit.com##.debuginfo
old.reddit.com##.tabmenu
old.reddit.com##.side
old.reddit.com##.infobar-toaster-container
old.reddit.com##.infobar.commentsignupbar
old.reddit.com##.infobar.listingsignupbar
old.reddit.com##.flairrichtext
windowslatest.com##.td-container.tdc-content-wrap
windowslatest.com##.td-pb-span4.td-main-sidebar
m.twitch.tv##.iFBsvI
m.twitch.tv##.ZXacB
www.computerbase.de##.row__aside
www.computerbase.de##.row__main:style(width: 100% !important)
fitgirl-repacks.site##.category-updates-digest
www.mydealz.de##.flex--expand-v > div > .bg--main
www.mydealz.de###sidebarContentPortal
www.mydealz.de###exploreMoreRelatedWidget
www.mydealz.de##.threadGrid
www.mydealz.de###group-overview
www.mydealz.de###footer-portal
www.mydealz.de##.nav-search--navigation.vue-rendered.lbox--v-9
www.mydealz.de##.space--h-4.space--v-4.space--fromW3-b-5.space--fromW3-t-5.space--mt-2.flex--fromW3-dir-row.flex--dir-col.boxAlign-ai--fromW3-c.bRad--fromW4-a.flex.bg--main
www.mydealz.de##.space--ml-a
www.mydealz.de##.listLayout-scrollBox.overflow--hidden.bRad--a.space--mv-2.card--space-responsive.aGrid.card--type-horizontal.card
www.mydealz.de##.space--mt-2.bRad--fromW4-a.card--space-responsive.aGrid.card--type-horizontal.card
www.mydealz.de##.space--mv-2.scrollBox-space--fromW3-l-s.scrollBox-space--m-s.listLayout-toW4-scrollBox.card--space-responsive.bRad--a.space--v-3.bg--main
www.mydealz.de##.aGrid-item--b-0.color--border-NeutralPrimary.border--t.zIndex--underModal.forceLayer.width--all-12.aGrid--fixed
www.mydealz.de###filtersBarPortal
www.mydealz.de###relatedVouchersWidgetMobilePortal
www.mydealz.de##.space--mv-2.scrollBox-space--fromW3-l-s.scrollBox-space--m-s.listLayout-toW4-scrollBox.card--space-responsive.space--v-3.bg--main
www.mydealz.de##.forceLayer.will-transform.zIndex--fixed.aGrid-item--b-menu.stickyBar-bottom
www.mydealz.de##.box--content
www.mydealz.de###exploreMoreTopWidgetPortal
www.mydealz.de###topMerchantsWidgetPortal
aliexpress*$removeparam=/^(gate|mp|spm|algo|pdp|cur|utparam|gps|scm|pvid|_t|search_)/
aliexpress.com###sidecart
aliexpress.com###_sidecart_placeholder23
aliexpress.com##.pdp-page-wrap:style(padding-right: 1px !important)
aliexpress.com##.home--new-home--UXKZmgj
aliexpress.com##.footer-wrap
aliexpress.com##.cart-recommend
aliexpress.com##.cart-summary-suggestion
aliexpress.com##.site-footer
aliexpress.com##.footer-copywrite
aliexpress.com##.relatedSearch--bottomWrapper--2lxD0Q4
aliexpress.com##.bottom--container--1EMPdiV
aliexpress.com##.es--product-fix-sns--3dZQv4l
aliexpress.com##.survey--wrap--wg1Og56
aliexpress.com###nav-moretolove
aliexpress.com##.cross-link--crossLink--D6lKnhz
amazon*$removeparam=/^(ref|smid|th|psc|_encoding|pd_rd|pf_rd|content-id)/
instagram.com##+js("set-attr", "video", "controls", "true")
instagram.com##video:style(display: block !important; height: 100% !important; width: 100% !important; position: absolute !important; z-index: 100 !important)
tiktok.com##+js("set-attr", "video", "controls", "true")
tiktok.com##div[class="DivActionBarWrapper"]
tiktok.com##div[class="DivVideoSwiperControlContainer"]
tiktok.com##div[class="DivScrollContainer"]
tiktok.com##div[class="DivVideoList"]
tiktok.com##div[class="DivSearchFormContainer"]
tiktok.com##div[class="DivIconWrapper"]
tiktok.com##div[class="DivCaptionContainer"]
tiktok.com##div[class="DivVoiceControlContainer"]tainer
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\exefile\shell\disabledpi]
[HKEY_CLASSES_ROOT\exefile\shell\disabledpi]
@="Disable DP&I Scaling"
[HKEY_CLASSES_ROOT\exefile\shell\disabledpi\command]
@="cmd /c @reg add \"HKCU\\Software\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers\" /v \"%1\" /f /t REG_SZ /d \"~ HIGHDPIAWARE\">nul"
"IsolatedCommand"="cmd /c @reg add \"HKCU\\Software\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers\" /v \"%1\" /f /t REG_SZ /d \"~ HIGHDPIAWARE\">nul"
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Allfilesystemobjects\shell\windows.copyaspath]
@="Copy &as path"
"Icon"="imageres.dll,-5302"
"InvokeCommandOnSelection"=dword:00000001
"VerbHandler"="{f3d06e7c-1e45-4a26-847e-f9fcdee59be0}"
"VerbName"="copyaspath"
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell]
"FolderType"="NotSpecified"
$Path = "C:\Users\Admin\Desktop\New folder"
Get-Childitem $Path -filter *.appx| %{Add-AppxPackage -Path $_.FullName}
Get-Childitem $Path -filter *.appxbundle | %{Add-AppxPackage -Path $_.FullName}
Get-Childitem $Path -filter *.Msixbundle | %{Add-AppxPackage -Path $_.FullName}
https://woshub.com/how-to-download-appx-installation-file-for-any-windows-store-app/#h2_1
@echo off
start cmd /k "C:\Users\Master\Downloads\TimerResBenchmark\MeasureSleep.exe"
// Copy as Path
item(title=sel.path cmd=command.copy(sel.path))
{
}
NTLITE SETTNGS W10
-- DESKTOP
Desktop icon - Recycle Bin = OFF
Meet Now = Off
News And Interests = Off
Pointer options - Enhance pointer precision = Off
Show People = Off
-- EXPLORER
Always show more = ON
Open File Explorer to = This PC
Quick access = OFF
Recycle Bin - Display delete text = ON
Show Task View button = OFF
Taskbar - Always show all icons = ON
View - Show extensions = ON
View - Show hidden = ON
-- POWER CONTROL
Fast Startup = OFF
Shutdown menu = ALL OFF
-- PRIVACY
Search - Include Bing web results = OFF
Windows Copilot = OFF
Windows Spotlight = OFF
-- User Account Control (UAC)
UAC Admin prompt = Elevate without prompt
----------------------------------------------------
---- COMPONENTS
-- APPS = ALL OFF
-- NETWORK = Microsoft Edge = OFF
-- SYSTEM APPS = Windows Defender = OFF
--Remove all Start Menu Apps
Get-AppxPackage -allusers | Remove-AppxPackage
--Restore all Start Menu Apps
Get-AppXPackage -allusers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
--Restore Windows Store
Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
--Restore Windows Calculator
Get-AppxPackage -allusers Microsoft.WindowsCalculator | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
--Remove Search annoyances
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Search /v BingSearchEnabled /t REG_DWORD /d 0 /f
reg add HKCU\Software\Policies\Microsoft\Windows\Explorer /v DisableSearchBoxSuggestions /t REG_DWORD /d 1 /f
--Restore Windows 10 Context Menu
reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
--Restore Windows 11 Context Menu
reg delete “HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}” /f
--Restore Notepad
Get-AppxPackage -allusers Microsoft.WindowsNotepad | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
--Restore Paint
Get-AppxPackage -allusers Microsoft.Paint | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
--Restore Snipping Tool
Get-AppxPackage -allusers Microsoft.ScreenSketch | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
--remove a singular app, with wildcards (*)
get-appxpackage *skypeapp* | remove-appxpackage
-reset windows store
wsreset -i
@ECHO OFF
CD "C:\Program Files (x86)\Steam\steamapps\common\Path of Exile\"
START PathOfExileSteam.exe
timeout /t 6 /nobreak
WMIC process where name="PathOfExileSteam.exe" CALL setpriority "realtime"
EXIT
gametitle=Sly Cooper (NTSC) (SCUS-97198)
[No Motion Blur]
author=Meos
description=No Motion Blur
patch=1,EE,2015EE64,extended,08057B9D
patch=1,EE,2018F6D0,extended,08063DB8
patch=1,EE,201E9C60,extended,0807A71B
patch=1,EE,2012B838,extended,0804AE17
patch=1,EE,2015F47C,extended,24060000
gametitle=Sly Cooper (NTSC) (SCUS-97198)
[Widescreen 16:9]
gsaspectratio=16:9
author=nemesis2000; Fixed by PsxFan107
description=Renders the game in 16:9 aspect ratio, instead of 4:3.
//Widescreen by nemesis2000
patch=1,EE,201436B0,word,3C013FDD
patch=1,EE,201436B4,word,3421A51D
//Bug Fix
patch=1,EE,2012B818,word,10000003
patch=1,EE,2015EECC,word,00000000
patch=1,EE,2018F798,word,00000000
patch=1,EE,201E9C98,word,00000000
[No Interlacing]
gsinterlacemode=1
author=asasega
description=No Interlacing
// No Interlacing by asasega
patch=1,EE,20202104,extended,00000000
[No Motion Blur]
author=Meos
description=No Motion Blur
// No Motion Blur by Meos
patch=1,EE,2015EE64,extended,08057B9D
patch=1,EE,2018F6D0,extended,08063DB8
patch=1,EE,201E9C60,extended,0807A71B
patch=1,EE,2012B838,extended,0804AE17
patch=1,EE,2015F47C,extended,24060000
gametitle=Ratchet - Deadlocked (NTSC-U) (SCUS-97465)
[Progressive Scan]
author=PeterDelta
comment=Starts the game in Progressive Scan Mode
gsinterlacemode=1
patch=1,EE,0021DE6C,extended,00000001
gametitle=Shin Megami Tensei - Nocturne (SLUS-20911) (CRC-E8FCF8EC)
[No Motion Blur]
author=Sergx12
description=No Motion Blur
patch=1,EE,202FC0E4,extended,00000000
[No Radial Blur]
author=Sergx12
description=No Radial Blur
patch=1,EE,202FC0E8,extended,00000000
gametitle=Mercenaries - Playground of Destruction NTSC-U SLUS-20932 23510F99
[60 FPS]
author=Gabominated
description=Requires EE overclock.
patch=1,EE,004A55DC,word,00000000
[Remove Blur/Bloom]
author=Gabominated
description=Removes the post-processing blur/bloom effect
patch=1,EE,004F318C,word,00000000
gametitle=Shin Megami Tensei: Persona 4 (SLUS-21782B)
[60 FPS]
author=asasega
comment=60 FPS
patch=1,EE,201026C0,word,10000006 //fps
patch=1,EE,20761130,word,3C888889 //speed
// patch=1,EE,203E40F0,word,3C023F00 //traverse
[Disable Blur & Bloom]
description=Removes Blur & Bloom
author=Reddit
patch=1,EE,00485AFC,word,00000000
@lextra2

lextra2 commented Sep 28, 2024

Copy link
Copy Markdown
Author

Run cmd.exe as admin with the following command:

setx __COMPAT_LAYER HighDpiAware /M

This is effectively to

Change high DPI settings > Override high DPI scaling behavior > Application

Source

See also

And here

  • HIGHDPIAWARE: Disable Display Scaling on High DPI Settings - Scaling performed by: Application (Win7/10)
  • DPIUNAWARE: Scaling performed by: Application (Win10 build 15002+)
  • GDIDPISCALING DPIUNAWARE: Scaling performed by: System (Enhanced) (Win10 build 15002+)

@lextra2

lextra2 commented Mar 25, 2025

Copy link
Copy Markdown
Author

Step 1 - Create a CPU Core Affinity Binary Mask

Starts from the right, going to the left:
Note: I've used spaces to ease visualisation. Use Step 2 values for copy-paste.
Cores you do want to use are represented by a 1. Use 0 for "Do not use".

Use the first 16 cores (CCD 1):
0000 0000 0000 0000 1111 1111 1111 1111

Use the last 16 cores (CCD 2):
1111 1111 1111 1111 0000 0000 0000 0000

Step 2 - Binary to Hex Converter

Go to https://www.rapidtables.com/convert/number/binary-to-hex.html
Copy one of the binary values below into the converter.

Use the first 16 cores:
00000000000000001111111111111111 <-- Binary
= FFFF <-- Hex
= 65535 <-- Decimal

Use the last 16 cores:
11111111111111110000000000000000 <-- Binary
= FFF000 <-- Hex
= 4294901760 <-- Decimal

Step 3 - Create a .bat file with your Hex Value

Replace FFFF with your desired hex value.
And don't forget to adjust the file path if your Steam location differs from the default one used below.

Note: Processes (like games) launched through launchers like Steam will inherent the CPU core affinity of the launcher.
Disable Steams autostart in the steam settings and exit it before using the command below.
Only launch Steam via the .bat file.

You can add the Steam.bat file to your Startup folder to get back the ability of automatically launching it after starting your PC.
The main startup folder path (shared by all users) is
%ProgramData%\Microsoft\Windows\Start Menu\Programs\StartUp
The user-specific path is
%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup

Create a Steam.bat file with the following text inside:

CD "C:\Program Files (x86)\Steam"
START /affinity FFFF steam.exe

Step 4 - OPTIONAL - Change the affinity of a running process via Command Prompt

To change the affinity of a running process, copy and paste the below string into a Command Prompt (cmd.exe) window.
You will have to change the processes name firefox and affinity 65535 to your desired ones.
The command uses a decimal value for the affinity, which you can find with the converter of Step 2

Note: Do not attempt to use this string in powershell directly. It will not work.

powershell "ForEach($PROCESS in GET-PROCESS firefox) {$PROCESS.ProcessorAffinity=65535}"

@lextra2

lextra2 commented Jan 31, 2026

Copy link
Copy Markdown
Author

remove gaybar
Get-AppxPackage Microsoft.XboxGamingOverlay | Remove-AppxPackage

@lextra2

lextra2 commented May 25, 2026

Copy link
Copy Markdown
Author

@lextra2

lextra2 commented Jun 2, 2026

Copy link
Copy Markdown
Author

Enable "Lock Pages in Memory" in Windows

  1. Press Win + R, type gpedit.msc and press Enter to open the Local Group Policy Editor.
  2. Navigate to Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment.
  3. Locate and double-click the Lock pages in memory policy.
  4. Click Add User or Group...
  5. Click Advanced...
  6. Click Find Now
  7. Select your User Account in the Search results
  8. Reboot

UseLargePages Registry

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\riftbreaker_win_release.exe]
"UseLargePages"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\riftbreaker_win_release.exe\PerfOptions]
"CpuPriorityClass"=dword:00000003

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment