On this page
scoop
scoop list 得到的列表:
https://gist.github.com/sunven/2a6ecebefcaadeea95b5a4f6ee3321c2
环境变量
[environment]::setEnvironmentVariable('SCOOP','D:\scoop','User')
# powershell 7
[System.Environment]::SetEnvironmentVariable('SCOOP', 'D:\scoop', [System.EnvironmentVariableTarget]::User)
install
iwr -useb get.scoop.sh | iex
proxy
https://github.com/ScoopInstaller/Scoop/wiki/Using-Scoop-behind-a-proxy
scoop config proxy 127.0.0.1:7890
问题
- 自动更新可能安装到其他目录
- 固定到任务栏的,为具体版本,例如 vscode
- potplayer 有直播页
- emeditor 没有右键菜单
other
https://github.com/kkzzhizhou/scoop-apps
https://github.com/lzwme/scoop-proxy-cn
choco
安装: https://chocolatey.org/install#individual
环境变量
[environment]::setEnvironmentVariable('ChocolateyInstall','D:\chocolatey','User')
[environment]::setEnvironmentVariable('ChocolateyToolsLocation','D:\tools','User')
install
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
proxy
choco config set proxy http://127.0.0.1:7890
## 安装指定版本(版本可能未审核通过)
choco install 1remote --version=1.0.0.20240327
uninstall
https://docs.chocolatey.org/en-us/choco/uninstallation
wingetui
install
scoop install extras/wingetui
winget 源
https://mirrors.ustc.edu.cn/winget-source
choco
- choco 使用系统的
- 始终以管理员权限执行 choco
PicGo
- scoop 安装 PicGo
scoop install picgo - 根据文档设置 github 图床
- 禁用快捷键,Ctrl+Shift+P 冲突
使用 Nilesoft Shell 设置右键菜单
item(title='Upload by PicGo' image=image('D:\Applications\Scoop\apps\picgo\current\PicGo.exe', 0) cmd='picgo' args='upload "@sel.path"')
PowerShell
- 获取所有已安装的模块:Get-InstalledModule
- 获取所有已安装的脚本:Get-InstalledScript
- PowerShell 配置文件路径:$Profile
rustdesk
https://rustdesk.com/docs/en/self-host/rustdesk-server-oss/install/
确保端口
wget https://raw.githubusercontent.com/techahold/rustdeskinstall/master/install.sh
chmod +x install.sh
./install.sh
- 使用 ip,而不是域名
- 安装 gohttpserver
环境变量
查看环境变量: powershell 中的变量只存在于 powershell 内部的会话中,一旦 powershell 关闭,这些变量就会自生自灭。但是如果环境变量被更新了,它会继续保存在操作系统中,即使其它程序也可以调用它
## 列出所有环境变量
Get-ChildItem -Path Env:\
ls env:
## 读取某个环境变量
$env:windir
## 设置某个环境变量
$env:TestVar1="This is my environment variable"
## 删除某个环境变量
del env:windir
查看占用端口:netstat -ano | findstr 3306
查看 PID 对应的进程:tasklist|findstr "12448"
查看被保留(不可用)的端口范围:netsh interface ipv4 show excludedportrange protocol=tcp
查看某个命令位置 (Get-Command pnpm).Source
优先级
- 通过 SET 命令设置的环境变量优先级最高
- 用户环境变量
- 系统环境变量
对于 PATH 变量
- 用 SET PATH 命令临时设置 PATH
- 系统环境变量
- 用户环境变量
其它
java 多版本

问题
I 形光标在输入框变透明
修改 OverlayTestMode:https://nvidia.custhelp.com/app/answers/detail/a_id/5157
To Do 无法同步
翻墙了都无法同步
Fiddler > WinConfig
IObit Uninstaller 卸载自己
佛系软件下的,删除安装目录的 version.dll,再卸载
TODO 登录不上
关闭 vpn windows终端命令行下如何使用代理?
控制台乱码
cmd
注册表打开 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor,新建一个变量命名为 autorun,数据填为 chcp 65001 即可
PowerShell
$PROFILE 文件增加如下
[Console]::OutputEncoding = [Text.Encoding]::UTF8 # 设置输出编码为 UTF-8
$OutputEncoding = [Text.Encoding]::UTF8 # 管道输出编码
chcp 65001 | Out-Null # 设置控制台代码页