Hi there 👋

Welcome to my blog

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