whoru

学习、分享、交流、沉淀

修改 /etc/docker/daemon.json 文件,添加如下镜像源:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
"registry-mirrors": [
"https://docker.m.daocloud.io",
"https://atomhub.openatom.cn",
"https://dockerpull.com",
"https://docker.1panel.dev",
"https://docker.fxxk.dedyn.io",
"https://docker.xn--6oq72ry9d5zx.cn",
"https://docker.zhai.cm",
"https://a.ussh.net",
"https://jf4r7fsl.mirror.aliyuncs.com",
"http://f1361db2.m.daocloud.io",
"https://register.liberx.info",
"https://docker.anyhub.us.kg",
"https://dockerhub.jobcher.com",
"https://dockerhub.icu",
"https://dockerhub.awsl9527.cn"
]
}

或直接使用下面的脚本文件:

  1. 创建文件 replace.sh;
  2. 添加可执行权限 chmod +x replace.sh
  3. 执行 sudo sh replace.sh
阅读全文 »

本文适用于 JetBrains 系软件,包含通用及单个软件的设置、使用技巧等,主要是在工作使用过程中遇到的问题及解决方式笔记。

1. 设置

1.1. 通用设置

关闭自动保存

菜单:Appearance & Behavior > System Settings > Synchronization

取消勾选:

  • Synchronize files on frame or editor tab activation
  • Save files on frame deactiation
  • Use "safe write"(save changes to a temporary file first)
打开修改文件未保存标识

菜单:Editor > General > Editor Tabs > Appearance

勾选:

  • Mark modified (*)
阅读全文 »

本文主要介绍如何使用 nvm 对 Node 的版本进行管理,当然你也可以选择另一个工具 n。

安装或升级(参见这里)

1
2
3
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
# 或
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

脚本的作用是将 nvm 仓库源码克隆到 ~/.nvm 下面,之后将环境变量添加到配置文件中,如:~/.bash_profile, ~/.zshrc,~/.profile,或 ~/.bashrc。

所以会用到 git 命令,如果没有 Git,请先安装。

阅读全文 »