~/.bashrc
に追加
export CMAKE_EXPORT_COMPILE_COMMANDS=1
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-up-to
sudo apt install -y nodejs npm
sudo npm install n -g
sudo n stable
sudo npm install -g cspell
cspell "**/*"
cspell "**/*.{hpp,cpp,md}"
https://proc-cpuinfo.fixstars.com/2023/01/rosbag2_storage_mcap_usage/
sudo apt install -y ros-humble-rosbag2-storage-mcap
ros2 bag record -s mcap --all
git config --global core.editor "vim"
docker system df
docker builder prune
docker system prune -a
find target_dir -mindepth 1 -maxdepth 1 | sort | xargs -Ipath echo path
find target_dir -name "*.png" | sort | xargs -I{} sh -c 'dir=$(dirname "{}"); prefix=$(basename "$dir"); orig=$(basename "{}"); echo "${dir}/${prefix}_${orig}"'
# set -euxをしているので
elapsed_time=$(date -u -d "@$SECONDS" +"%T")
# をするだけで表示される
ros2 run rqt_diagnostic_graph_monitor rqt_diagnostic_graph_monitor
xinput list
xinput list-props 11
xinput --set-prop 11 "libinput Accel Speed" -0.2
# 必要であれば~/.bashrcに追加する
https://nxmnpg.lemoda.net/ja/8/rc.local
sudo vim /etc/sysctl.conf
vm.swappiness=10
sudo sysctl -p
~/.gitconfig
下に以下を追記する
[url "[email protected]:"]
insteadOf = https://github.com/