Skip to content

Instantly share code, notes, and snippets.

View xiaodong2077's full-sized avatar

Xiaodong Huang xiaodong2077

  • MercuryNavi
  • Guangzhou, China
  • 20:18 (UTC +08:00)
View GitHub Profile
@xiaodong2077
xiaodong2077 / clean_bash.sh
Created May 16, 2024 07:12
livox_ros_driver2 integration
#! /usr/bin/bash
source /opt/ros/noetic/setup.bash
rm -rf build
rm -rf devel
if [ ! -f src/livox_ros_driver2/package.xml ]; then
cp -f src/livox_ros_driver2/package_ROS1.xml src/livox_ros_driver2/package.xml
fi
@xiaodong2077
xiaodong2077 / manage-3rd-with-stow.md
Last active July 26, 2024 08:00
use stow to manage 3rd libraries

introduction

OS: Ubuntu 18.04, Ubuntu 20.04

Download stow from apt.

command lines

Replace xxx with the 3rd library you want to name.

@xiaodong2077
xiaodong2077 / custom.css
Last active April 26, 2024 15:18 — forked from Ynng/custom.css
vscode vtuber logo
.editor-group-watermark > .letterpress{
background-image: url("https://raw.githubusercontent.com/Aikoyori/ProgrammingVTuberLogos/main/VSCode/VSCode-Thick.png") !important;
opacity: .100;
aspect-ratio: 3/2 !important;
}
@xiaodong2077
xiaodong2077 / create_compile_commands.sh
Created March 11, 2024 07:11
Get a whole compile_commands.json(which is used in cland and sonarlint) file with `catkin_make_isolated` of ROS. You also need to add this option `-DCMAKE_EXPORT_COMPILE_COMMANDS=1` when you run `catkin_make_islodated`
#! /bin/bash
# Merge`build_isolated/*/compile_commands.json` to `build/compile_commands.json`
output_file="build/compile_commands.json"
rm -f "$output_file"
echo "[" > "$output_file"
@xiaodong2077
xiaodong2077 / insta360-x3.rules
Created October 11, 2023 03:11
access instal360 X3
# please move this file to /etc/udev/rules.d
# then reload rules : sudo udevadm control --reload-rules
# if you already plug-in camera, remove it and re-plug-in
# Allow {OWNER} to access Insta360 X3 USB device
SUBSYSTEM=="usb", ATTR{idVendor}=="2e1a", ATTR{idProduct}=="0002", MODE="0666", OWNER="xiaodong"