随笔分类 -  工具

摘要:# 问题 ![](https://img2023.cnblogs.com/blog/2550519/202307/2550519-20230713133821636-1712732866.png) # 方法 不使用原始密码,使用github生成的tokens作为密码鉴权 ![](https://im 阅读全文
posted @ 2023-07-13 13:41 春树&暮云 阅读(216) 评论(0) 推荐(0) 编辑
摘要:Docker 批量stop容器 # docker stop $(docker images -a | awk '/xxxx/ { print $3 }') Pip 离线安装whl pip download -d deps torch==1.9.1+cpu -f https://download.py 阅读全文
posted @ 2022-11-18 14:57 春树&暮云 阅读(10) 评论(0) 推荐(0) 编辑
摘要:步骤 登陆阿里云控制台,获取对应集群连接信息,public_key home目录新建.kube/config, 将public_key粘贴到config,如果有多个可以对齐root key更新,注意要修改name,如sit、uat,不能重复 apiVersion: v1 clusters: - cl 阅读全文
posted @ 2022-07-18 10:40 春树&暮云 阅读(191) 评论(0) 推荐(0) 编辑
摘要:安装步骤 windows系统功能开启子系统选项 window storage 下载ubuntu系统,建议手动下载安装,不然商店直接安装会默认装在C盘 设置并使用wsl2 下载windows-terminal preview,一个好用的终端 下载安装zsh & oh-my-zsh, 在~/.zshrc 阅读全文
posted @ 2022-07-17 11:33 春树&暮云 阅读(51) 评论(0) 推荐(0) 编辑
摘要:通信测试 ip使用192.168.xxx 可以互通 ip使用docker虚拟网卡 172.xx 也可以互通 ip使用localhost/127.0.0.1 不通 阅读全文
posted @ 2022-07-05 15:48 春树&暮云 阅读(169) 评论(0) 推荐(0) 编辑
摘要:docker 安装 remove podman: sudo dnf remove podman install: sudo yum remove docker-ce docker-ce-cli containerd.io 如果提示还有冲突,添加参数 --allowerasing 阅读全文
posted @ 2022-06-22 14:13 春树&暮云 阅读(208) 评论(0) 推荐(0) 编辑
摘要:参考资料 https://blog.csdn.net/weixin_40146921/article/details/105037352 (亲测可用) 阅读全文
posted @ 2022-05-23 10:59 春树&暮云 阅读(359) 评论(0) 推荐(0) 编辑
摘要:工具 linux截图涂鸦: flameshot 阅读全文
posted @ 2022-04-17 10:54 春树&暮云 阅读(36) 评论(0) 推荐(0) 编辑
摘要:问题 当需要打开多个终端窗口分别执行不同的命令,可以是bash脚本统一处理 方法 vim xxxxx.sh gnome-terminal --tab -e "bash -c 'cd $dir; bash xx.sh'" gnome-terminal --tab -e "bash -c 'cd $di 阅读全文
posted @ 2022-04-17 10:52 春树&暮云 阅读(304) 评论(0) 推荐(0) 编辑
摘要:问题 通过vscode的save and run 插件 实现文件保存自动同步。常用于备份或者本地和服务器联合开发 方法 vscode下载插件save and run 项目目录下新建.vscode/settings.json, 配置如下内容 { "saveAndRun": { "commands": 阅读全文
posted @ 2022-03-15 13:53 春树&暮云 阅读(430) 评论(0) 推荐(0) 编辑
摘要:问题 普通用户无法使用docker命令,提示权限问题 方法 创建名为docker的用户组,将普通用户附加到对应docker组,详情参考 docker权限 备注: 机器重启永久生效。或者当前终端临时生效: newgrp docker 阅读全文
posted @ 2021-12-14 14:20 春树&暮云 阅读(126) 评论(0) 推荐(0) 编辑
摘要:多git账号配置 针对多个git分别生成公私秘钥 ssh-keygen -t rsa -C aa@git.com ssh-keygen -t rsa -C bb@git.com 将上述生成的公钥拷贝到对应git地址内的ssh key vim ~/.ssh/config Host github.com 阅读全文
posted @ 2021-09-17 15:04 春树&暮云 阅读(139) 评论(0) 推荐(0) 编辑
摘要:配置 vim ~/.tmux.conf 添加配置 set -g prefix C-a unbind C-b setw -g mode-keys vi set -g automatic-rename off set -g allow-rename off set-option -g history-l 阅读全文
posted @ 2021-09-17 14:53 春树&暮云 阅读(46) 评论(1) 推荐(0) 编辑
摘要:1. 在本机生成RSA公钥私钥 ssh-keygen -t rsa -f cc123 -C "cc123 key" #cc123指定产生的文件名, 默认id_rsa, -C 指定*.pub文件说明 一直回车,会在~/.ssh/目录下生成cc123、cc123.pub两个文件 2. 拷贝id_rsa. 阅读全文
posted @ 2021-09-17 14:43 春树&暮云 阅读(589) 评论(0) 推荐(0) 编辑
摘要:1. 支持git拉取远程所有分支,脚本(git_pullall.sh)如下 #!/bin/env bash git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$r 阅读全文
posted @ 2021-09-17 14:34 春树&暮云 阅读(4139) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示