Windows

问题

自动关闭屏幕时间设定不起作用

Win10系统自动关闭屏幕时间设定不起作用,怎么办?

@solarsail
开始菜单 => 搜索屏幕保护 => 打开控制面板的屏幕保护程序设置 => 把屏保改成“无” => 等一分钟确认一下。

安装 Conda 后 PowerShell 启动慢

感谢大佬

在 PowerShell 中输入:

(& "C:\path\to\conda\Scripts\conda.exe" "shell.powershell" "hook") | Out-String

把输出的文本贴到 profile.ps1 中,例如:

$Env:CONDA_EXE = "C:\Users\username\miniconda3\Scripts\conda.exe"
$Env:_CE_M = ""
$Env:_CE_CONDA = ""
$Env:_CONDA_ROOT = "C:\Users\username\miniconda3"
$Env:_CONDA_EXE = "C:\Users\username\miniconda3\Scripts\conda.exe"
$CondaModuleArgs = @{ChangePs1 = $True }
Import-Module "$Env:_CONDA_ROOT\shell\condabin\Conda.psm1" -ArgumentList $CondaModuleArgs
conda activate base
Remove-Variable CondaModuleArgs

最好删除conda activate base,并使用conda config --set auto_activate_base false禁用自动激活。

技巧

协议 tcp 端口排除范围

使用命令查看被系统排除在可用范围外的端口:

netsh interface ipv4 show excludedportrange protocol=tcp
  1. Windows + R调出命令运行框,输入:regedit后确认打开注册表;
  2. 打开以下路径:HKEY_CURRENT_USER\Software\Microsoft\InputMethod\Settings\CHS
  3. 新建字符串值,字符串名称为:UserDefinedDoublePinyinScheme0,值为:小鹤双拼*2*^*iuvdjhcwfg^xmlnpbksqszxkrltvyovt
  4. 退出后进入微软拼音设置,即可看到小鹤双拼方案已存在,选择保存即可。
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\InputMethod\Settings\CHS]
"Enable Cloud Candidate"=dword:00000000
"Enable Dynamic Candidate Ranking"=dword:00000001
"EnableExtraDomainType"=dword:00000001
"Enable self-learning"=dword:00000001
"EnableSmartSelfLearning"=dword:00000001
"EnableLiveSticker"=dword:00000000
"Enable EUDP"=dword:00000001
"Enable Double Pinyin"=dword:00000001
"UserDefinedDoublePinyinScheme0"="小鹤双拼*2*^*iuvdjhcwfg^xmlnpbksqszxkrltvyovt"
"DoublePinyinScheme"=dword:0000000a

ssh-copy-id on windows doesn't work: No such file or directory

ssh-copy-id on windows doesn't work: No such file or directory

Get-Content $env:USERPROFILE\.ssh\id_rsa.pub | ssh <user>@<hostname> "cat >> .ssh/authorized_keys"
文章目录