Skip to content
Go back

My Windows

Updated:  at  18:48

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

问题

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

PicGo

  1. scoop 安装 PicGo scoop install picgo
  2. 根据文档设置 github 图床
  3. 禁用快捷键,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

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

环境变量

查看环境变量: 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

优先级

  1. 通过 SET 命令设置的环境变量优先级最高
  2. 用户环境变量
  3. 系统环境变量

对于 PATH 变量

  1. 用 SET PATH 命令临时设置 PATH
  2. 系统环境变量
  3. 用户环境变量

其它

java 多版本

问题

I 形光标在输入框变透明

修改 OverlayTestMode:https://nvidia.custhelp.com/app/answers/detail/a_id/5157

To Do 无法同步

翻墙了都无法同步

https://sspai.com/post/41137

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                            # 设置控制台代码页

Suggest Changes

Previous Post
Psychology
Next Post
termux

Most Related Posts

  • WSL 基本使用

    Published:  at  12:40

    WSL (Windows Subsystem for Linux) 的基本安装、配置、使用方法以及常见问题的解决方案。

  • My Mac

    Updated:  at  12:55

    my mac

  • My Linux

    Updated:  at  11:31

    my linux

  • generative ai for beginners

    Published:  at  21:04

    generative ai for beginners

  • termux

    Published:  at  21:58

    termux