python-reinstall-wheel-with-out-download

1. 到当前目录Python
@echo off
@REM @chcp 65001
@REM @title %~n0
@REM @cd /d %~dp0
@set PYTHON_HOME=%~dp0
@set PATH=%PATH%;%PYTHON_HOME%;%PYTHON_HOME%Scripts

REM @echo.
REM @echo CUDA_HOME
@echo %PYTHON_HOME%
@echo PYTHON_HOME setup done

REM @echo.
REM @echo Load-ENV-CUDA
REM @call ./nvidia/cuda_11.6_setup.cmd
REM @call ../nvidia/cuda_12.8_setup.cmd

@cmd /k

REM No module named 'aliyunsdkcore'
REM pip install aliyun-python-sdk-core

2. gey-py.py

3. reinstall-wheel.cmd
@cd /d %~dp0 && clear
REM
python -m pip uninstall -y pip wheel setuptools
REM
python get-pip.py
REM
python -m pip install -y pip wheel setuptools
REM 导出依赖列表
pip freeze > requirements_freeze_wheel.txt
REM 下载依赖的 wheel 包到本地(如 wheelhouse 文件夹)
pip wheel -r requirements_freeze_wheel.txt -w wheelhouse/
REM 后续可通过 wheel 包安装依赖(避免重复下载):
pip uninstall -r requirements_freeze_wheel.txt -y
REM
pip install --no-index --find-links=wheelhouse/ -r requirements_freeze_wheel.txt

win-10-无损调整升级策略

1. 进CMD 修改注册表

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v FlightSettingsMaxPauseDays /t reg_dword /d 36500 /f 
start ms-settings:windowsupdate 


2. 打开「Windows 设置」,前往「更新和安全」-「Windows 更新」,点击「暂停更新 7 天」的按钮, 再高级选项,修改暂停截止日期,直至满足暂停时长的需要。

%号开头的文件重命名-alpine

apk add perl perl-uri

 

#rename-url-to-chs.sh
#
for file in %*; do
    if [[ -f "$file" ]]; then
        # 使用 Perl 解码文件名
        newname=$(perl -MURI::Escape -e "print uri_unescape('$file');")
        mv "$file" "$newname"
        echo "Renamed: $file -> $newname"
    fi
done

 

win-10-11-driver-backup-by-dism

您可以使用Windows自带工具或第三方软件轻松备份计算机中的驱动程序,以确保系统的稳定性和数据安全。
使用Windows自带工具备份驱动程序
使用DISM命令:
打开命令提示符(以管理员身份运行)。
输入以下命令并按Enter:

mkdir c:\drivers && dism /online /export-driver /destination:c:\drivers

其中,c:\drivers是您希望保存备份的路径,可以根据需要修改

====================================
PC获取硬件标识(Windows篇)
在Windows系统中通过命令行查看当前设备信息,主板UUID,CPU-ID,硬盘序号

wmic csproduct get UUID
wmic cpu get processorid
wmic diskdrive get serialnumber

====================================
另有pnptuils 导出所有驱动程序包:

mkdir c:\drivers_pnp && pnputil /export-driver * c:\drivers_pnp   

参考地址:
https://www.cnblogs.com/suv789/p/17738792.html

重复文件清理工具-doublekiller-dupeGuru

https://www.bigbangenterprises.de/en/doublekiller/

https://dupeguru.voltaicideas.net/ ( https://github.com/arsenetar/dupeguru )

Linux 命令行工具fdupes
$ sudo apt install fdupes [On Debian, Ubuntu and Mint]
$ sudo yum install fdupes [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
$ sudo emerge -a sys-apps/fdupes [On Gentoo Linux]
$ sudo apk add fdupes [On Alpine Linux]
$ sudo pacman -S fdupes [On Arch Linux]
$ sudo zypper install fdupes [On OpenSUSE]