This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HOSTNAME=`hostname` ssh-keygen -t ecdsa -C "$HOSTNAME" -f "$HOME/.ssh/id_rsa" -P "" && cat ~/.ssh/id_rsa.pub |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ansible-playbook -i vm-inventory.yml -e host=router small.yml -vvvv | |
ansible-playbook [core 2.13.3] | |
config file = /etc/ansible/ansible.cfg | |
configured module search path = ['/home/ato/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] | |
ansible python module location = /home/ato/.local/lib/python3.8/site-packages/ansible | |
ansible collection location = /home/ato/.ansible/collections:/usr/share/ansible/collections | |
executable location = /home/ato/.local/bin/ansible-playbook | |
python version = 3.8.10 (default, Jun 22 2022, 20:18:18) [GCC 9.4.0] | |
jinja version = 3.1.2 | |
libyaml = True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
diff=$(cargo fmt -- --check) | |
result=$? | |
if [[ ${result} -ne 0 ]] ; then | |
cat <<\EOF | |
There are some code style issues, run `cargo fmt` first. | |
EOF | |
exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "example-entity-robotic", | |
"name": "example robotic entity", | |
"version": "0.2.1", | |
"entity_version": "0.0.1", | |
"description": "this is an example entity", | |
"fdus": [ | |
{ | |
"id": "tb3-motors", | |
"name": "turtlebot3_bringup", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt update && sudo apt upgrade -y | |
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common sshpass -y | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo apt-key fingerprint 0EBFCD88 | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt-get install docker-ce docker-ce-cli containerd.io -y | |
sudo usermod -aG docker $(whoami) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
if ($#ARGV != 0 ) { | |
printf "usage: stat <container number>\n"; | |
exit; | |
} | |
$cont=$ARGV[0]; | |
open HOSTNAME, "hostname |"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./configure --prefix=/data/data/com.termux/files/usr/ | |
checking for ocamlc... ocamlc | |
OCaml version is 4.09.0 | |
OCaml library path is /data/data/com.termux/files/usr/lib/ocaml | |
checking for ocamlopt... ocamlopt | |
checking for ocamlc.opt... ocamlc.opt | |
checking for ocamlopt.opt... ocamlopt.opt | |
checking for ocaml... ocaml | |
checking for ocamldep... ocamldep | |
checking for ocamldep.opt... ocamldep.opt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"syscall" | |
"time" | |
// "bufio" | |
// "os" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<domain type="kvm"> | |
<name><VM NAME></name> | |
<memory unit="MB">RAM</memory> | |
<vcpu placement="static">CPU</vcpu> | |
<os> | |
<type>hvm</type> | |
<boot dev="hd"/> | |
</os> | |
<features> | |
<acpi/> |
NewerOlder