Skip to content

Latest commit

 

History

History
211 lines (162 loc) · 6.84 KB

File metadata and controls

211 lines (162 loc) · 6.84 KB

Pre-install

# TODO

Install

# Clone
pwsh.exe
cd && git clone https://github.com/barsikus007/config --depth 1 && cd -
# Install/Update
# sudo is needed for New-Item -ItemType SymbolicLink
# TODO split initial and incremental setup
cd ~\config\ && git pull && sudo .\windows\pwsh.ps1 && cd -

Post-install

#? https://wiki.archlinux.org/title/System_time#UTC_in_Microsoft_Windows
sudo reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_DWORD /f

Powershell lifehack to bypas security policy

PowerShell.exe -ExecutionPolicy Bypass -File <filename>

Override system apps with user within shell context

${env:Path} = @(
  [Environment]::GetEnvironmentVariable('Path', 'User')
  [Environment]::GetEnvironmentVariable('Path', 'Machine')
) -join ';'

PWSH cheatsheet

Convert all mkv to mp4 with ffmpeg

$oldvids = Get-ChildItem -Filter "*.mkv" -Recurse

foreach ($oldvid in $oldvids) {
    $newvid = [io.path]::ChangeExtension($oldvid, '.mp4')
    ffmpeg.exe -i $oldvid -s 960x544 -c:v copy -c:a aac -y $newvid
}

Convert all webp to png with ffmpeg

$oldvids = Get-ChildItem -Filter "*.webp" -Recurse

foreach ($oldvid in $oldvids) {
    $newvid = [io.path]::ChangeExtension($oldvid, '.png')
    ffmpeg.exe -i $oldvid -y $newvid
}

QuickLook

TODO

  • install windows soft with auto update from winget (think about config sync of that apps)
  • ask scoop maintaners about FAQ about tools with autoupdate
  • ~/Documents/PowerShell/profile.ps1
  • winget
    • https://builds.parsec.app/package/parsec-windows.exe
    • Parsec.Parsec
  • allow powershell profiles in wt.exe
  • https://github.com/ionuttbara/windows-defender-remover
    • not tested
  • https://camo.studio/
  • scoop
    • aria2bug
      • scoop config aria2-options "--check-certificate false"
      • scoop config rm aria2-options
      • or
      • scoop config aria2-enabled false
      • scoop config rm aria2-enabled
      • or/and
      • aria2 disable alias
      • aria2 scoop tune params
    • scoop cleanup -a
    • scoop cache rm -a
  • history file: ~\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt
  • winget installBehavior": "portablePackageMachineRoot", "portablePackageUserRoot", "preferences": "scope": "user"
  • config fzf
  • pwsh packages (move to 5.0?)
  • mingit cert config
    • git config --global http.sslCAInfo "C:\\Users\\Admin\\scoop\\apps\\mingit\\current\\mingw64\\etc\\ssl\\certs\\ca-bundle.crt"
  • exclude autoupdate packages from scoop
  • explorer like tabs in wt.exe
  • powertoys pc config (without remaps)
  • copy scoop/persist configs for apps
  • auto wslhostpatcher
  • notepad.exe -> Cascadia Code NF 12
  • Test UWP VK client
  • Tweak windows
  • netlimiter or windowsfirewallcontrol
  • pwsh
    • pwsh 5 dont load profile and notice about pwsh 7
    • pwsh funcs $args broken?
    • config pwsh -nol
    • lazy eval of Test-Command
  • unsorted dump from TG
    • fix powertoys rmc
    • fix dotnet
    • windows explorer path bar fix to old
    • diskpart windows нормальный

Toggle new context menu (due to lack of 7zip and notepad++)

  • disable reg.exe add “HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32” /f
  • enable reg.exe delete “HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}” /f
#Remove-Item "$env:appdata\Scooter Software\Beyond Compare 4\*.*" -Force -Confirm:$false
Remove-Item "$env:appdata\Scooter Software\Beyond Compare 4\BCState.xml" -Force -Confirm:$false
Remove-Item "$env:appdata\Scooter Software\Beyond Compare 4\BCState.xml.bak" -Force -Confirm:$false
#Remove-Item "$env:appdata\Scooter Software\Beyond Compare 4\BCSessions.xml" -Force -Confirm:$false
#Remove-Item "$env:appdata\Scooter Software\Beyond Compare 4\BCSessions.xml.bak" -Force -Confirm:$false
reg delete "HKCU\Software\Scooter Software\Beyond Compare 4" /v "CacheID" /f

Edge fix "harm exe" notification

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge\ExemptDomainFileTypePairsFromFileTypeDownloadWarnings]
"1"="{\"file_extension\": \"exe\", \"domains\": [\"*\"]}"

Shutdown commands

  • shutdown /t 0 /r # reload now
  • shutdown /t 0 /s /f # full shutdown

WireGuard

WireSockUI

  • install
  • AllowedApps = _msedge, _opera, code, copilot-agent-win, EpicGamesLauncher, EpicWebHelper, steam, steamwebhelper, mstsc
  • AllowedIPs = 0.0.0.0/1, 128.0.0.0/1, ::/1, 8000::/1

Steam Lite

steam -no-browser +open steam://open/minigameslist

Sound Normalization

Sound Source Settings -> Enhancements -> Loudness Equalization

install hacks

pass HW checks

# SHIFT + F10

reg add HKLM\System\Setup\LabConfig /t reg_dword /d 0x00000001 /f /v BypassTPMCheck
reg add HKLM\System\Setup\LabConfig /t reg_dword /d 0x00000001 /f /v BypassSecureBootCheck
reg add HKLM\System\Setup\LabConfig /t reg_dword /d 0x00000001 /f /v BypassCPUCheck
reg add HKLM\System\Setup\LabConfig /t reg_dword /d 0x00000001 /f /v BypassRAMCheck
reg add HKLM\System\Setup\LabConfig /t reg_dword /d 0x00000001 /f /v BypassStorageCheck

local account creation

# SHIFT + F10
start ms-cxh:localonly