Visual Studio Notes

各种 Visual C++ 编译工具 prompt command 区别

默认工具

  • 名称

    • Developer Command Prompt for VS 2019
    • 名称上不写平台
  • 机理

Conda Notes

导入 导出环境

pip 兼容 —- 制作 requirements.txt

1
conda list > requirements.txt

conda 导出 环境

1
2
3
4
5
conda env export > environment.yaml # 所有

conda env export -n py37 > py37.yaml  # 给定环境

conda env export --help

conda 导入 环境(多个)

1
conda env create -f environment.yaml

win10 异常

  • 问题简述

Bash Notes

命令

gpg

  • gnu privacy guard

重定向

  • heredoc

    • eg:

      1
      2
      3
      4
      5
      
      sudo tee /etc/docker/daemon.json <<-'EOF'
      {
        "registry-mirrors": ["https://o8npla25.mirror.aliyuncs.com"]
      }
      EOF

使用 XDG_HOME 存放 .bashrc

参考:

把下面的内容存放到 /etc/profile.d/bash_xdg.sh 中:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
# Make bash follow the XDG_CONFIG_HOME specification
_confdir=${XDG_CONFIG_HOME:-$HOME/.config}/bash
_datadir=${XDG_DATA_HOME:-$HOME/.local/share}/bash

# Source settings file
if [ -d "$_confdir" ]; then
    for f in bash_profile .bashrc ; do
        [ -f "$_confdir/$f" ] && . "$_confdir/$f"
    done
fi

# Change the location of the history file by setting the environment variable
[ ! -d "$_datadir" ] && mkdir -p "$_datadir"
HISTFILE="$_datadir/history"

unset _confdir
unset _datadir

string 字符串

基本语法

连接字符串

实现:连着写即可