Hi there 👋

Welcome to my blog

win11ltsc激活教程

教程来源 https://ihacksoft.com/windows-11-ltsc-2024/ KMS激活 1 2 3 slmgr -ipk M7XTQ-FN8P6-TTKYV-9D4CC-J462D slmgr -skms kms.0t.net.cn slmgr -ato

May 22, 2025 · 1 min · 14 words · Yuu

Mac下深度学习环境搭建(花书)

安装miniconda3 通过打开终端并运行以下命令之一(取决于您的 macOS 体系结构)来下载安装程序:.sh 1 2 # apple m系列 curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh 通过运行以下命令进行安装(具体取决于您的 macOS 体系结构): 1 bash ~/Miniconda3-latest-MacOSX-arm64.sh 按返回键查看 Anaconda 的服务条款 (TOS)。然后按住 Return 键滚动。 输入 以同意 TOS。yes 按 Return 键接受默认安装位置 (),或输入其他文件路径以指定备用安装目录。安装可能需要几分钟才能完成。PREFIX=/Users//miniconda3 选择初始化选项: 是 - 修改您的 shell 配置,以便在您打开新 shell 时初始化 conda,并自动识别 conda 命令。conda 否 - 不会修改您的 shell 脚本。安装后,如果要初始化,则必须手动进行初始化。有关更多信息,请参阅手动 shell 初始化。conda 安装程序完成并显示“感谢您安装 Miniconda3! 关闭并重新打开终端窗口以使安装完全生效,或使用以下命令刷新终端: 1 source ~/.zshrc 初始化完成后会出现类似的代码 1 2 3 4 5 6 7 8 9 10 11 12 13 14 # >>> conda initialize >>> # !...

May 19, 2025 · 1 min · 178 words · Yuu

win11下的深度学习环境搭建(wsl2)

打开 PowerShell(以管理员身份),执行: 1 wsl --list --online 查看可以安装的发行版 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 PS C:\Users\Yuu> wsl --list --online 以下是可安装的有效分发的列表。 使用 'wsl.exe --install <Distro>' 安装。 NAME FRIENDLY NAME AlmaLinux-8 AlmaLinux OS 8 AlmaLinux-9 AlmaLinux OS 9 AlmaLinux-Kitten-10 AlmaLinux OS Kitten 10 Debian Debian GNU/Linux FedoraLinux-42 Fedora Linux 42 SUSE-Linux-Enterprise-15-SP5 SUSE Linux Enterprise 15 SP5 SUSE-Linux-Enterprise-15-SP6 SUSE Linux Enterprise 15 SP6 Ubuntu Ubuntu Ubuntu-24....

May 4, 2025 · 2 min · 317 words · Yuu

Debian12安装docker

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 # 更新软件包索引 sudo apt-get update # 安装需要的软件包以使apt能够通过HTTPS使用仓库 sudo apt-get install ca-certificates curl gnupg lsb-release # 添加Docker官方的GPG密钥 curl -fsSL https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring....

November 24, 2024 · 1 min · 190 words · Yuu

nvim配置文件

nvim配置文件备份 .config/nvim 1 2 3 4 5 6 7 8 9 10 11 12 . ├── nvim │ ├── init.lua │ ├── lua │ │ ├── keymaps.lua │ │ ├── config │ │ │ └── nvim-cmp.lua │ │ ├── plugins.lua │ │ ├── lsp.lua │ │ ├── colorscheme.lua │ │ └── options.lua │ └── lazy-lock.json init.lua 1 2 3 4 5 require('options') require('keymaps') require('plugins') require('colorscheme') require('lsp') lua/keymaps.lua 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 -- define common options local opts = { noremap = true, -- non-recursive silent = true, -- do not show message } ----------------- -- Normal mode -- ----------------- -- Hint: see `:h vim....

November 24, 2024 · 12 min · 2373 words · Yuu

终端美化和命令行加强

准备阶段 需要homebrew包管理器 1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 安装iterm2 1 brew install iterm2 下载hack nerd字体 1 2 3 git clone https://github.com/ryanoasis/nerd-fonts.git --depth 1 cd nerd-fonts ./install.sh iterm2 设置默认主题 iterm2配置hack nerd字体 图片来自https://blog.csdn.net/SmallTeddy/article/details/124850597 侵删 安装oh-my-zsh 1 sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" 安装主题powerlevel10k 1 git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k 在***.zshrc中设置主题ZSH_THEME=“powerlevel10k/powerlevel10k”*** 安装插件 zsh-completions 1 git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions zsh-autosuggestions 1 git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions zsh-syntax-highlighting 1 git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting 加入到***.zshrc***中 1 2 3 4 5 6 plugins=( git zsh-completions zsh-autosuggestions zsh-syntax-highlighting ) 全部完整的的***....

November 24, 2024 · 2 min · 359 words · Yuu

openwrt安装uu加速器插件

openwrt版本:21.02.7 link: openwrt 建议21.x版本或者18.x 设置ip 1 ifconfig # 查看ip信息 设置静态ip地址 1 vi /etc/config/network 设置好后进入openwrt后台。 设置网关和dns保证联网。 安装uu加速器插件 1 wget http://uu.gdl.netease.com/uuplugin-script/20231117102400/install.sh 1 /bin/sh install.sh openwrt $(uname -m) 正常会输出sn信息。 如果没有就输入下面的指令。 1 /bin/sh install.sh openwrt mipseb 1 2 opkg update opkg install kmod-tun 查看kmod-tun 1 ls /dev/net/tun 输出/dev/net/tun 结束 手机上下载uu加速器主机版,设置网关和dns指向openwrt的ip地址。 绑定路由器,加速游戏。

November 22, 2024 · 1 min · 47 words · Yuu