Set up a network bridge to the physical interface (NIC) on your host connected to a specific LAN
docker network create -d macvlan \
--subnet=192.168.111.0/24 \
-o parent=enx000ec6be0a54 br_net
| #include <stdio.h> | |
| #include <stdlib.h> | |
| unsigned long bit_sum(unsigned long n) { | |
| return n ? (1 + bit_sum(n & (n - 1))) : 0; | |
| } | |
| void main(int argc, char ** argv) { | |
| char * p; | |
| long n; |
| #! /usr/bin/ruby | |
| # coding: utf-8 | |
| # | |
| # Split a CSV into vcard files | |
| infile = File.new(File.join(File.expand_path(File.dirname(__FILE__)), ARGV), "r") | |
| while (line = infile.gets) | |
| vals = line.split( ",") | |
| continue if vals.empty? | |
| fname = File.join(File.expand_path(File.dirname(__FILE__)), "vcard","#{vals[0]}.vcf".gsub( " ", "").strip) | |
| File.open(fname, "w:UTF-8") do |f| |
| git clone https://gist.github.com/5678a1d78d80e758301d9da3bc4fb4f1.git /opt/source |
| #!/bin/bash | |
| # Synology DLNA server does not recognize mp4 audio files | |
| # but does recognize them if ther are .M4A. | |
| # https://www.synology.com/en-global/dsm/software_spec/audio_station | |
| find "${HOME}/Music/tmp" -name "*.mp4" | while read filename | |
| do | |
| name=$(echo "${filename}" | sed -e "s/.mp4$//g") | |
| echo "${name}" |
| #!/usr/bin/env bash | |
| # Script to print CPU temperature in a while loop to STDOUT | |
| if [ -z $1 ]; then | |
| echo "Required THERMAL_ZONE arg not given." 1>&2 | |
| echo "List thermal zones and types with:" 1>&2 | |
| echo " grep . /sys/class/thermal/thermal_zone*/type" 1>&2 | |
| echo "" 1>&2 | |
| echo "Usage:" 1>&2 | |
| echo " $0 THERMAL_ZONE [SECONDS_BETWEEN_READINGS]" 1>&2 | |
| exit 1; |
Minimal example of embedding ign-gui into a QML application.
Host:
git clone https://gist.github.com/138385fb3934fd75ddfcfe42f802e2cf.git downstream
git clone https://github.com/zflat/ign-gui.git -b ign5-application_base
git clone https://github.com/ignitionrobotics/ign-rviz.git
docker build -t my_ign:latest ./downstream
xhost + local:rootThis is a configuration file used to customize Emacs. To use this file, ensure the prerequisites are met and then follow the steps in the initial setup instructions section below to download this file from the upstream gist to a file named config.org in your emacs config directory.
Once the config.org file is in your emacs config directory and the setup is complete, you will be able to run Emacs with the customizations defined in the emacs configuration details section of the config.org file. Further customizatons and tweaks can be made by editing the appropriate sections of ~/.emacs.d/config.org.
| #!/usr/bin/env python3 | |
| # | |
| # This is a test script that can be used to test latency of sending ROS messages between containers | |
| # | |
| # First get a baseline by running everything in the same container | |
| # Terminal 1: | |
| # ``` | |
| # python3 talker_ros2_latency.py | |
| # ``` | |
| # Terinal 2: |