Skip to content

Instantly share code, notes, and snippets.

View gabrik's full-sized avatar
🛰️
🦀

Gabriele Baldoni gabrik

🛰️
🦀
View GitHub Profile
@gabrik
gabrik / generate-ssh-key
Last active May 5, 2023 06:53 — forked from hongkongkiwi/generate-ssh-key
Simple one liner to generate an SSH key without a password in the default place with the comment as hostname then print out the public key for copy and paste.
HOSTNAME=`hostname` ssh-keygen -t ecdsa -C "$HOSTNAME" -f "$HOME/.ssh/id_rsa" -P "" && cat ~/.ssh/id_rsa.pub
@gabrik
gabrik / zigbee-ros2-teleop.py
Created February 22, 2023 16:29 — forked from JEnoch/zigbee-ros2-teleop.py
A Zenoh python script demonstrating ROS2 + Zigbee/MQTT integration
# This script is an example of ROS2 + Zigbee/MQTT integration thanks to Zenoh.
#
# By default, it assumes that:
# - a zenoh-bridge-dds is deployed and routes the ROS2 traffic to zenoh. It's configured to use "simu" as a scope.
# - a zenoh-bridge-mqtt is deployed and routes the MQTT traffic coming from zigbee2mqtt software
#
# This script can connect to any Zenoh endpoint using the "-e" option (a Zenoh router, the zenoh-bridge-dds or the zenoh-bridge-mqtt).
# Then it performs the following:
#
# - It subscribes in Zenoh to "zigbee2mqtt/device/button" to receive JSON messages from zigbee2mqtt when a Zigbee push button named "device/button" is pressed.