Power Toys Light Switch
Toggle themes in Windows 11 using Power Toys and the shortcut: Ctl Shift Win - D
Toggle themes in Windows 11 using Power Toys and the shortcut: Ctl Shift Win - D
To open the Windows Subsystem Linux from the File Explorer enter the following in the address bar: \\wsl$ to open a specific Distro add it to the path, for example: \\wsl$\Debian
I have been frustrated by Windows 11 inability to consistently use my preferred theme, especially during the Night-Day theme changes. To this end I found a way to create a Desktop shortcut to the theme I want to use. Far easier than constantly opening Preferences. Create a Shortcut to the saved desired theme in this folder: %localappdata%\Microsoft\Windows\Themes Update: This is no longer working for me, as it is with Windows and its inconsistency.
I recently screwed up my Desktop Icons in Windows 11. I had been playing with the scaling factor and that had messed up the icon space scaling. The icons ended up with a massive hit size as shown above. To reset the icon sizes all you need to do is edit the WindowMetrics in the Windows Registry. Using the Registry Editor search for IconSpacing or follow the path in the image bellow. The default seems to be -1125 and if you see a massive negative number then that is the problem. ...
Create a batch file, for example: symlink.bat with the following content and edit the source and target locations to suit. @echo off set "source=c:\source\directory" set "target=c:\target\directory" set "exclude=%temp%\exclude.txt" ( rem exclude files/dires with these strings into full path echo .txt echo pipe.cmd rem escaped backslash and initial and final quotes to avoid partial matches echo "c:\\source\\directory\\something.txt" rem exclude thisNot file/directory from source directory echo "%source:\=\\%\\thisNot" )> "%exclude%" forfiles /P "%source%" /C "cmd /c (echo @path|findstr /i /v /g:"%exclude%" >nul) && if @isdir==TRUE (mklink /d \"%target%\\\"@file @path) else (mklink \"%target%\\\"@file @path)" del "%exclude%" > nul Original answer posted on: stackoverflow
I have recently been setting up an old Mac Mini as Webserver and NAS server. One of the things I wanted to do was enable ssh key pair login and wondered how one used ssh-copy-id on a Windows machine to get the public key from a local machine to the server. It turns out you can’t but the cat command can do it just fine. Here is the template: type C:\Users\<user>\.ssh\id_rsa.pub | ssh <user>@<remoteserver> 'cat >> .ssh/authorized_keys' This assumes your public key is in the default location, your home directory under the .ssh directory, if not modify the first part of the command to reflect its location ...