Skip to content

Instantly share code, notes, and snippets.

@lextra2
Last active March 10, 2025 17:28
Show Gist options
  • Save lextra2/801d487cb8721231dfc1760db2ebdce5 to your computer and use it in GitHub Desktop.
Save lextra2/801d487cb8721231dfc1760db2ebdce5 to your computer and use it in GitHub Desktop.
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##.nav-buttons
old.reddit.com##.debuginfo
old.reddit.com##.tabmenu
old.reddit.com##.side
old.reddit.com##.content:style(width: 100% !important)
old.reddit.com##.infobar-toaster-container
old.reddit.com##.infobar.commentsignupbar
old.reddit.com##.infobar.listingsignupbar
m.twitch.tv##.stream-chat
kleinanzeigen.de##div[id^="srp"]
kleinanzeigen.de##.ad-listitem.badge-topad.is-topad
mydealz.de##.aGrid-item
mydealz.de###sidebarBottomAdSlotPortal
mydealz.de###latestNewsWidgetPortal
mydealz.de##.bg--main
mydealz.de###groupHottestWidgetPortal
mydealz.de###exploreMoreRelatedWidget
mydealz.de##.cept-widget-list
mydealz.de##div[id^="customBannerList-id"]
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"
DEL /Q "%localappdata%\AMD\DX9Cache", "%localappdata%\AMD\DxCache", "%localappdata%\AMD\DxcCache", "%localappdata%\AMD\OglCache", "%localappdata%\AMD\VkCache"
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
!Settings!
Desktop:
- Pointer options - Enhance pointer precision = Disabled
Explorer:
- Search Suggestions = Disabled <-- DEPRECATED
- Open File Explorer to = This PC
- View - Show extensions for known file types = Enabled
- View - Show hidden files, folders and drives = Enabled
Privacy:
Occasionally show suggestions in Start = Disabled
Show me suggested content in the Settings app = Disabled
Suggest ways I can finish setting up my device online = Disabled
Windows Spotlight = Disabled
Privacy:
- Search - Include Bing web results = Disabled
- Automatic installation of sponsored apps (Consumer Experience) (Candy Crush, etc.) = Disabled
- Automatically install suggested apps (Candy Crush, etc.) = Disabled
- Pre-installed apps = Disabled
- Show frequently used folders in Quick access = Disabled
- Show recently used files in Quick access = Disabled
Power Control:
- Fast Startup = Disabled
- Shutdown Menu Hibernate/Lock/Sleep = Disabled
Remove > Components > Windows Apps > Uncheck "Apps"
Configure > Features > Media Features > Uncheck
Configure > Features > Internet Explorer 11 > Uncheck
automatic driver update mode = never
automaticically update device drivers and icons over the internet = disabled
windows update service download = check for updates but let me choose wether to download and install them
--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=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=Mercenaries - Playground of Destruction (NTSC-U) (SLUS-20932)
[60 FPS]
author=asasega
comment=Requires EE Cycle Rate overclock
patch=1,EE,203AD720,word,2C420001
@lextra2
Copy link
Author

lextra2 commented May 21, 2022

@lextra2
Copy link
Author

lextra2 commented May 22, 2022

Firefox Tweaks

about:config

toolkit.zoomManager.zoomValues
.25,.5,.75,1,1.25,1.33,1.5,1.75,2,2.5,3,4,5

full-screen-api.transition-duration.enter
0
full-screen-api.transition-duration.leave
0
full-screen-api.warning.timeout
0

gfx.color_management.native_srgb
true

media.cache
2000

network.http.http3.recvBufferSize
222111222

media.mediasource.eviction_threshold.video
222111222

media.mediasource.eviction_threshold.audio
111222111

test here

browser.cache.check_doc_frequency
1

https://kb.mozillazine.org/Browser.cache.check_doc_frequency

@lextra2
Copy link
Author

lextra2 commented Aug 7, 2022

Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers TdrDelay from 10 to 20

@lextra2
Copy link
Author

lextra2 commented Mar 31, 2023

DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /StartComponentCleanup
DISM /Online /Cleanup-Image /RestoreHealth
SFC /scannow

https://www.windowscentral.com/how-use-dism-command-line-utility-repair-windows-10-image

https://www.windowscentral.com/how-use-sfc-scannow-command-fix-problems-windows-10

@lextra2
Copy link
Author

lextra2 commented Sep 2, 2023

https://www.rapidtables.com/convert/number/binary-to-hex.html

powershell.exe -Command "Get-WmiObject Win32_process -filter 'name = """Audiodg.exe"""' | ForEach-object{$_.SetPriority(128)};Get-Process Audiodg | ForEach-Object {$_.ProcessorAffinity=0xC00000};return 0;"

24  21  18  15  12  9   6   3
000 000 000 000 111 111 111 111
111 111 111 111 000 000 000 000

000000000000111111111111
111111111111000000000000

= FFF
= FFF000

@echo off
start /abovenormal /affinity FFF notepad.exe

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

https://docs.google.com/spreadsheets/d/1J2tmV_ZFrhMqzeRlyb6eOUs7a6jwQZRGzA-n6Tr_57o/edit?usp=sharing

https://stackoverflow.com/questions/19187241/change-affinity-of-process-with-windows-script

@lextra2
Copy link
Author

lextra2 commented Apr 4, 2024

Cloudflare DNS

IPv4
1.1.1.1
1.0.0.1

IPv6
2606:4700:4700::1111
2606:4700:4700::1001


Google DNS

IPv4
8.8.8.8
8.8.4.4

IPv6
2001:4860:4860::8888
2001:4860:4860::8844


AdGuard

IPv4
94.140.14.14
94.140.15.15

IPv6
2a10:50c0::ad1:ff
2a10:50c0::ad2:ff

@lextra2
Copy link
Author

lextra2 commented May 7, 2024

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36

@lextra2
Copy link
Author

lextra2 commented Jun 8, 2024

bcdedit /set disabledynamictick yes
bcdedit /set useplatformtick yes
bcdedit /deletevalue useplatformclock

@lextra2
Copy link
Author

lextra2 commented Jun 26, 2024

TCP Optimizer

https://www.majorgeeks.com/files/details/speedguide_net_tcp_optimizer.html

General Settings > Checksum Offloading = Enabled
Advanced Settings > Gaming Tweak > NetworkThrottlingIndex = Disabled
Advanced Settings > Gaming Tweak > TcpAckFrequency = Disabled: 1
Advanced Settings > Gaming Tweak > TCPNoDelay = Enabled: 1

@lextra2
Copy link
Author

lextra2 commented Jul 17, 2024

Extract NTLite\sources\install.wim\
Copy GroupPolicy folder from currently running Windows\System32 install to NTLite\sources\install.wim\Windows\System32\

DISM /Mount-image /imagefile:C:\project\install.wim /Index:1 /MountDir:C:\project\mountHere

DISM /Unmount-Image /MountDir:C:\project\mountHere /Commit

@lextra2
Copy link
Author

lextra2 commented Sep 28, 2024

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+)

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