VerMishelb's stash

На главную

Заметки

This is a collection of tips, tricks and other PC-related stuff that I have collected over the years of using Windows versions 7 through 11. Some of it used to be in a text file I had on my local drive but this drive is long gone. This time I am storing this online so it doesn't disappear into the void.

Значения в реестре

Windows Registry Editor Version 5.00  

;Turn off automatic folder mode adjustment thing to speed the explorer up
[-HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags]
[-HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU]
[HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell]
"FolderType"="NotSpecified"

;Local account creation in Windows 11. Use Shift-F10 to open CMD on OOBE screen and call 'regedit' there. If the CMD doesn't show up, kill Secure Boot and try again.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE]
"BypassNRO"=dword:00000001

;Treat the BIOS time as UTC instead of local time. Helps if there's a Linux installation as an extra system and the clock breaks on both systems after every switch.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001

Alt-коды

Большая часть работает на любой раскладке, но некоторые зависят от неё.
—; – | 0151; 0150 | Em dash; En dash
↑↓→← | 24 25 26 27
™; © | 0153; 0169
  | 0160/255 | non-breaking space
accent mark | 769 [doesn't work everywhere, and in word there's 0301 → Alt-X combo that is more universal]
█ | 987
• | 0149
° | 0176 eng | Degree sign ±²³ | 0177-0179
§; ¶ | 0167/21; 0182 | Paragraph sign, carret return
· | 0183

Компьютер не может уснуть, просыпается на ровном месте

Go to your power management settings, the ones from Windows Vista (use Win-R and type "control" to bring up the old control panel) and modify your active power plan to disable "wake-up on event timers" or some option of that kind. Optionally, you can turn off "Wake-on-LAN" and "Wake on magic packet" to prevent the wake-ups from the network adapter. Do this through the adapter options in the device manager.

Сброс кэша иконок

Есть два типа кэша — IconCache и ThumbCache. Первый для обычных иконок, вроде приложений и папок. Второй для предпросмотра видео и изображений. Обычно ломается первый. Поместите следующий код в .bat файл и выполните от имени администратора.

taskkill /f /im explorer.exe
cd /d %localappdata%\Microsoft\Windows\Explorer
rem This command removes (-) the "Hidden" attribute (h) of the file.
attrib -h iconcache_*.db
del /f IconCache*
rem Remove "rem" from the following if you want to reset image previews as well.
rem del /f ThumbCache*
cd /d %localappdata%
attrib -h IconCache.db
del /f IconCache.db
start explorer.exe

Поддержка JPEG-XL на Windows 10

Используйте вот эту крутую штуку. Инструкция довольно простая, но, на случай, если она пропадёт, просто вызовите regsvr32 с тамошней .dll от имени администратора.




Linux

Скрипт для обновления Discord в Debian

Arch has automatic Discord updates but Debian doesn't, for some reason. Therefore I use this small script to update it every time this annoying "Download .deb" screen pops up. Stackoverflow says it's a bad way of doing this but it also never says why, so until this is disclosed I guess we're fine. You can't run this script by double-clicking it, but you can run it from the terminal just fine.
#! /usr/bin/bash
discord_url="https://discord.com/api/download/stable?platform=linux&format=deb"
curl -L -o /tmp/discord.deb $discord_url
sudo apt install /tmp/discord.deb