-
Macbook
- 触控板:轻点
-
飞书、飞连
-
个人git仓库:
-
Dotfiles、CS-Notes
-
Dotfiles-local
- 配置ssh + git账号
git clone git@github.com:huangrt01/dotfiles-local.git
-
git config --global user.name "huangrt01" git config --global user.email huangrt01@163.com # MacOs ssh-keygen -t rsa -b 4096 -C "huangrt01@163.com" # 如果rsa已占用,可用ssh-keygen -t ed25519 -C "huangruiteng@xxx.com" eval "$(ssh-agent -s)" ssh-add ~/.ssh/id_rsa --apple-use-keychain # MacOS带 pbcopy < ~/.ssh/id_rsa.pub # MacOS , Linux用xclip 上github添加SSH Key ssh -T git@github.com # ssh-keygen -y -f ~/.ssh/id_rsa # Linux
-
-
Iterm2、Sublime text
- enter iTerm2/Settings
- Profiles/Text/Font -> Meslo*
- Profiles/Colors/ColorPresets -> Pastel*
- Unlimited scroll back
- enter iTerm2/Settings
-
Chrome
- 账号
-
Typora
-
豆包、微信、网易云音乐
-
Clion、VSCode、Trae
-
Mendeley
-
QuickJump
-
MailMaster, WeChat
-
Discord
-
暂时搁置
- my dotfiles, the design philosophy is illustrated in my Shell Note
- easy-to-use
chmod 777 bootstrap.sh
./bootstrap.sh
zsh- zsh plugins: zplug, fzf, autojump, zsh-completions, zsh-autosuggestions, zsh-syntax-highlighting, zsh-history-substring-search, zsh-git-prompt
- vim plugins:ack.vim, ctrlp.vim, nerdtree, vim-fugitive, vim-rhubarb, ale
- `shallow=true'
- shell
if [ -f ~/.zshrc_local ]; then
source ~/.zshrc_local
fi- git
[include]
path = ~/.gitconfig_local- vim
let $LOCALFILE=expand("~/.vimrc_local")
if filereadable($LOCALFILE)
source $LOCALFILE
endif- tmux
if-shell "[ -f ~/.tmux_local.conf ]" 'source ~/.tmux_local.conf'- vim-ale related: shellcheck, write-good(or proselint )
apt install shellcheck
npm install -g write-good# apt install silversearcher-ag
git clone https://github.com/satanson/the_silver_searcher.git --depth=1
sudo apt install -y automake pkg-config libpcre3-dev zlib1g-dev liblzma-dev
./build.sh
sudo make install
apt install tree
# https://nodejs.org/en/download/package-manager/#installing-node-js-via-package-manager
npm install -g tldr
apt install fd-find
apt install clocsudo apt-get update
pip3 install --upgrade pip
sudo apt install zsh
zsh --version
# log out and login back
echo $SHELL
$SHELL --version
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
sudo apt-get install python3-pip
pip install --upgrade pip
pip install --upgrade setuptools
pip install ipython
pip install ipdb
pip3 install thefuck
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple virtualenvwrapper
export WORKON_HOME=~/Envs
mkdir -p $WORKON_HOME
source /usr/local/bin/virtualenvwrapper.sh
# or
source ~/.local/bin/virtualenvwrapper.sh
# install perf
sudo apt install linux-source
cd /usr/src
tar -xjf linux-source-4.4.0.tar.bz2
cd tools/perf
make # fail! why?
sudo apt install linux-tools-common
perf
# ...
# follow the instructions
# ...
# finish installing perf
apt install stress
apt install htop- python3, pip3, ipython, ipdb
- Pip3: line_profiler, memory-profiler, pycallgraph
pip install pycallgraph, tabulate, line_profiler, memory-profiler
pip3 install openai
apt install graphviz
# dot -v
Security:
Firefox Add-on
-
HTTPS Everywhere, Multi-Account Containers(No Chrome), uBlock Origin, 1Password
-
Full Web Page Screenshots (Chrome: Full Page Screen Capture
apt update
apt install gdb manpages-dev file sysstat
https://blog.wangluyuan.cc/2020/12/24/forwarding-x11/
- 自动化:
- 安装brew
- 下载安装powerline font
- GitLens
- basedpyright
- python
-
git插件生效
git config --global --add safe.directory /root/newrec/huangruiteng/tiger_team
-
yapf format
- 公共:
- Python
- Remote - SSH
- ByteDance Authenticator
- MarsCode
- GitLens
- Code Spell Checker, EditorConfig for VSCode, String Manipulation, Visual Studio IntelliCode
- Code Runner
- Python:
- Python
- yapf
- 添加settings.json
- C++: cpplint, CodeLLDB, Header source switch, Rainbow Brackets, C++ Intellisense
-
CMake, CMake Tools
- cmake插件需要cmake3.9.4以上版本的cmake的支持,ubuntu16.04以下的用户可能需要手动安装新版本的cmake
-
Clangd
-
VSCode C/C++ 开发环境和调试配置:Clangd+Codelldb
- 阅读超大型项目源码的注意事项
- 关闭 editor.formatOnSave, clang-tidy, all-scopes-completion
- codeLLDB 使用(TODO)
- 阅读超大型项目源码的注意事项
-
有clangd之后,不需要 C/C++ (by Microsoft) 了
-
-
Tabnine:AI加持的自动补全,用GPT
-
Peacock:不同workspace可以用不同的颜色区分
-
调大C++插件的可用内存:
-
- lsp(language service provider): vscode clangd
- 依赖 compile_commands.json
- 自动构建
- 手动生成:
mkdir build && cd build && cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 ..
- 如果linux的glibc版本较旧,需要给clangd打补丁(patchelf),链接向新版glibc
-


