Skip to content

Instantly share code, notes, and snippets.

@AveYo
AveYo / .add tweaked_balanced_power_scheme.bat
Last active February 17, 2025 13:15
Balanced Gaming power scheme to use while.. gaming, switch back to Balanced when done
@(set ^ "0=%~f0" -des ') &set 1=%*& powershell -nop -c iex(out-string -i (gc -lit $env:0)) & exit /b ')
$tn = 'Tweaked Balanced Power Scheme' #:: AveYo, 2025.02.17
#:: Args / Dialog - to skip the prompt can use commandline parameters or rename script: tweaked_balanced_power_scheme import.bat
$cl = @{0 = 'import'; 1 = 'restore'} ; $do = ''; if (!$env:0) {$env:0 = "$pwd\.pasted"}
foreach ($a in $cl.Values) { if ("$(split-path $env:0 -leaf) $env:1" -like "*$a*") {$do = $a} } ; if ($do -eq '') {
$s0 = powercfg /query 381b4222-f694-41f0-9685-ff5bb260df2f 2>''; $s0 = ('',[char]0x2713)[$?]
$choice = (new-object -ComObject Wscript.Shell).Popup("Yes = Import $s0 No = Restore", 0, $tn, 0x1043)
if ($choice -eq 2) {break} elseif ($choice -eq 6) {$do = $cl[0]} else {$do = $cl[1]}
@AveYo
AveYo / Windows 10 PitchBlack mid.xaml
Created July 31, 2023 06:55
Retrobar Windows 10 PitchBlack (wip)
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:RetroBar.Controls"
xmlns:converters="clr-namespace:RetroBar.Converters"
xmlns:utilities="clr-namespace:RetroBar.Utilities"
xmlns:system="clr-namespace:System;assembly=mscorlib">
<!-- Windows 10 PitchBlack center by AveYo -->
<Style x:Key="TaskListWrapPanel" TargetType="WrapPanel">
@AveYo
AveYo / . steamwebhelper_min.bat
Last active February 12, 2025 22:47
Steam minimal resource usage after removal of -no-browser & -vgui options. Enter script in powershell then use Steam_min shortcut on Desktop instead
@(set ^ "0=%~f0" -des ') & powershell -nop -c iex(out-string -i (gc -lit $env:0)) & exit /b ');.{
" Steam_min : always starts in SmallMode with reduced ram usage when idle - AveYo, 2025.02.12 v2 "
$QUICK = '-silent -quicklogin -vgui -oldtraymenu -nofriendsui -no-dwrite -vrdisable -forceservice -console ' +
'-cef-force-browser-underlay -cef-delaypageload -cef-force-occlusion -cef-disable-gpu -cef-single-process'
$STEAM = resolve-path (gp "HKCU:\SOFTWARE\Valve\Steam" SteamPath -ea 0).SteamPath
#pushd "$STEAM\userdata"
#$CLOUD = split-path (dir -filter "localconfig.vdf" -Recurse | sort LastWriteTime -Descending | Select -First 1).DirectoryName
@AveYo
AveYo / . Pitch Black Theme.reg
Last active February 26, 2025 14:50
Pitch Black Theme.reg - now for Ctrl+Alt+Del (and logon on 11) as well - revised 2022-06-16
Windows Registry Editor Version 5.00
; Pitch Black Theme preset by AveYo, AccentPalette idea by /u/Egg-Tricky
; for Ctrl+Alt+Del, Logon, Taskbar, Start Menu, Action Center (10 & 11)
; revised 2022-06-16: show active taskbar button in accent color
[-HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent]
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent]
"AccentColorMenu"=dword:aa000000 ; Window borders and titlebar
"StartColorMenu"=dword:aa202020 ; Modals in UWP ex. Apply new refresh rate in 10
@AveYo
AveYo / 7-Zip_Windows11.reg
Last active February 26, 2025 10:09
7-Zip Windows 11 Context Menu entries via whitelisted id reuse example by AveYo
Windows Registry Editor Version 5.00
; 7-Zip Windows 11 Context Menu entries via whitelisted id reuse example by AveYo
; Add to archive.. only single files (multiple would need a single instance redirect tool)
[-HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\connectNetworkDrive]
[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\connectNetworkDrive]
"MuiVerb"="@C:\\Program Files\\7-Zip\\7-zip.dll,-2324"
"Position"="Middle"
"Icon"="C:\\Program Files\\7-Zip\\7-zip.dll,0"
@AveYo
AveYo / ..runasTI.bat
Last active February 3, 2025 19:49
Lean and Mean runas TrustedInstaller / System compact snippet to easily integrate in your batch scripts
@echo off& title RunAsTI - lean and mean snippet by AveYo, 2018-2022
goto :nfo
[FEATURES]
- innovative HKCU load, no need for reg load / unload ping-pong; programs get the user profile
- sets ownership privileges, high priority, and explorer support; get System if TI unavailable
- accepts special characters in paths for which default run as administrator fails
- adds Send to - RunAsTI right-click menu entry to launch files and folders as TI via explorer
[USAGE]
- First copy-paste RunAsTI snippet after .bat script content
- Then call it anywhere to launch programs with arguments as TI
@AveYo
AveYo / win10colors.cmd
Last active October 13, 2024 00:42 — forked from mlocati/win10colors.cmd
ANSI Colors in standard Windows 10 shell
@echo off
title Windows 10 native ANSI colors fast and compact macro setup by AveYo - just replace ECHO with %%@%% and ^<ESC^> with @
:: Initiate macro just once
call :@echo
:: [screenonly] [processed escape sequences]
%@% @^^[101;93m @[101;93m STYLES
%@% @^^[0m @[0m Reset
%@% @^^[1m @[1m Bold
%@% @^^[4m @[4m Underline
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active February 20, 2025 09:55
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@AveYo
AveYo / .FreeStandbyMemory.bat
Last active November 23, 2023 21:16
FreeStandbyMemory.bat - ninja edits at https://pastebin.com/Kj36ug5h
/* 2>nul || title FreeStandbyMemory.bat by AveYo v2019.06.01
@echo off|| csc compiling snippet, advanced schedule, builtin add_remove - UPDATE: reliable free memory detection
set/a CLEAR_EVERY_MINUTES=1
set/a CLEAR_WHEN_UNDER_MB=512
set/a CLEAR_SYSTEMCACHEWS=0
:: check_admin_rights
reg query "HKEY_USERS\S-1-5-20\Environment" /v TEMP >nul 2>nul || (
color 0e & echo. & echo PERMISSION DENIED! Right-click %~nx0 ^& Run as administrator
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>=
<PublishedMedia id="2072" release="20181002 RS5 RTM WU">
<Files>
<File id="470474">
<FileName>17763.1.180914-1434.rs5_release_CLIENTCHINA_RET_x64FRE_zh-cn.esd</FileName>
<LanguageCode>zh-cn</LanguageCode>
<Language>Chinese Simplified</Language>
<Edition>CoreCountrySpecific</Edition>
<Architecture>x64</Architecture>