Skip to content

Windows

start menu icon

user ~\appData\Roaming\Microsoft\Windows\Start Menu\Programs

global c:\ProgramData\Microsoft\Windows\Start Menu\Programs

user custom PATH Ref

~/AppData/Local/Microsoft/WindowsApps

ssh-copy-id

windows10 缺少这个程序

public key 追加到 authorized_keys 文件,并设置 .sshauthorized_keys 权限。

PowerShell
$ type ~\.ssh\id_rsa.pub | ssh <username>@<host> 'cat >> ~/.ssh/authorized_keys'
$ chmod -R 700 ~/.ssh
$ chmod 600 ~/.ssh/authorized_keys

ipv6 无法获取

删除注册表配置项Tcpip6TcpipTUNNEL,重启会重新生成。

PowerShell
$ regedit
# HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6
# HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TcpipTUNNEL

windows photo viewer

添加注册表配置项FileAsociations

PowerShell
$ regedit

# 计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAsociations

设置配置项“字符串值”

文件名修改-批量

PowerShell
Get-ChildItem *.png | Rename-Item -NewName {$_.Name -replace '(\d{3})(.png)', '0$1.jpg'}

virtual box

sh
VBoxManage list vms --long
VBoxManage list runningvms
VBoxManage list vms
# 后台运行
VBoxManage startvm <vm_name|vm_uuid> -type headless
# 关机
VBoxManage controlvm <vm_name|vm_uuid> acpipowerbutton
# 强制关机
VBoxManage controlvm <vm_name|vm_uuid> poweroff

windows store

wsreset -i