备忘录

⎠⎝≥⏝⏝≤⎠⎞ ⎠⎝≥⏝⏝≤⎠⎞

vim 输入 '\t'
insert 模式下, ctrl + v 然后 输入 tab

https://blog.csdn.net/leo_wanta/article/details/7104960

cp /etc/apt/sources.list /etc/apt/sources.list.bak
sed -i 's|security.ubuntu.com|mirrors.aliyun.com|g' /etc/apt/sources.list
sed -i 's|archive.ubuntu.com|mirrors.aliyun.com|g' /etc/apt/sources.list
apt-get update
apt-get install vim gcc-10 g++-10 gdb valgrind netcat-traditional -y
apt-get install flex bison -y
# install cmake
# install ninja
set -e;
mv $1 .$1.bak
mv $2 $1
mv .$1.bak $2

重复执行某个命令:

# https://www.tecmint.com/run-repeat-linux-command-every-x-seconds/
watch $command
#https://linuxhint.com/bash_select_command/
select brand in case1 case2 case3 case4
do
echo "You have chosen $brand"
done
# https://stackoverflow.com/questions/1494178/how-to-define-hash-tables-in-bash
在shell中定义一个map

python decode 问题

LANG='en_US.utf-8'

https://blog.wanvale.com/archives/428/

python nohup 刷新缓冲区
python3 -u $file

submodule

git submodule update --init

ulimit -n

sudo vi /etc/security/limits.conf

github 拉 pull request

git fetch origin pull/ID/head:BRANCHNAME
git checkout BRANCHNAME

学习

https://nan01ab.github.io/2018/09/Optimizing-the-Block-IO.html
https://ci.spdk.io/download/performance-reports/SPDK_nvme_bdev_perf_report_2305.pdf
https://www.intel.com/content/www/us/en/developer/articles/tool/performance-counter-monitor.html

find . -type f -name "*.h" | xargs -I {} sed -i 's/haha/hehe/g' {}
posted @ 2021-05-25 13:48  stdpain  阅读(41)  评论(0编辑  收藏  举报