This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #![allow(static_mut_refs)] | |
| use windows::core::BOOL; | |
| use windows::Win32::Foundation::*; | |
| use windows::Win32::System::Console::*; | |
| #[derive(Debug, Clone, Copy, PartialEq, Eq)] | |
| pub enum Event { | |
| None, | |
| CtrlC, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using namespace System.Security.Principal | |
| if (-Not ([WindowsPrincipal] [WindowsIdentity]::GetCurrent()).IsInRole([WindowsBuiltInRole]::Administrator)) { | |
| Start-Process PowerShell -Verb RunAs -ArgumentList "-NoProfile -File `"$PSCommandPath`"" | |
| Exit | |
| } | |
| $id = "0cb3b571-2f2e-4343-a879-d86a476d7215" | |
| mountvol X: /s # EFI Partition |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| [ "$EUID" -ne 0 ] && echo "This script must be ran as root!" && exit 1 | |
| system=$(settings list system) | |
| secure=$(settings list secure) | |
| global=$(settings list global) | |
| read -p "Press Enter after changing settings..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ForEach ($folder in 'Cache', 'Code Cache', 'GPUCache') { Remove-Item -Recurse "$folder/*"; icacls $folder /deny Everyone:F } | |
| # Revert | |
| ForEach ($folder in 'Cache', 'Code Cache', 'GPUCache') { icacls $folder /remove:d Everyone } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\CompatTelRunner.exe] | |
| "Debugger"="%1" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\CompatTelRunner.exe] | |
| "Debugger"="%1" |
NewerOlder