Skip to content

Instantly share code, notes, and snippets.

@lextra2
Last active July 20, 2024 15:53
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.
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 Mar 31, 2023

DISM /Online /Cleanup-image /Scanhealth

DISM /Online /Cleanup-Image /CheckHealth

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

@lextra2
Copy link
Author

lextra2 commented Apr 27, 2024

techpowerup.com##.s-
techpowerup.com##.todayslist
techpowerup.com##.contnt: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

@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

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