- Create a directory for your new workspace
mkdir dev_ros2 cd dev_ros2
- Download the zip and extract inside your workspace directory as
.devcontainer
wget -qO- https://gist.github.com/zflat/445b2ef3427dd947e2a3d46b61420b9b/archive/main.tar.gz | tar -xz --transform "s/^445b2e.*main/.devcontainer/"
- Create the workspace volume. Run from the root of your workspace:
This file contains 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/python3 | |
# this used to live at https://gitlab.gnome.org/snippets/814 | |
# but has since been deleted, the original author is unknown | |
# reuploading here for safe keeping | |
import dbus | |
import secrets | |
import re |
This file contains 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/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: |
This 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
.
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:root
This file contains 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/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; |
This file contains 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 | |
# 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}" |
This file contains 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
git clone https://gist.github.com/5678a1d78d80e758301d9da3bc4fb4f1.git /opt/source |
This file contains 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/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| |
NewerOlder