Skip to content

Instantly share code, notes, and snippets.

View Tacha-S's full-sized avatar

Tatsuro Sakaguchi Tacha-S

View GitHub Profile
# Locates the tensorflow library and include dirs.
include(FindPackageHandleStandardArgs)
unset(TENSORFLOW_FOUND)
find_path(Tensorflow_INCLUDE_DIR
NAMES
tensorflow/core
tensorflow/cc
third_party
@Tacha-S
Tacha-S / 02-staticroutes
Created June 18, 2020 07:03
cuboid routing conf when using dual NIC
#!/bin/sh
ip route del 0.0.0.0/0 via 192.168.13.1 dev enp2s0
ip route add 192.168.13.0/24 via 192.168.13.1 dev enp2s0
#!/bin/bash -eu
catkin config --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
catkin build
cat ./build/*/**/compile_commands.json > build/compile_commands.json && sed -i -e ':a;N;$!ba;s/\]\n*\[/,/g' build/compile_commands.json
compdb -p build list > compile_commands.json