Skip to content

Instantly share code, notes, and snippets.

View tylerjw's full-sized avatar
🦀
Peace was never an option

Tyler Weaver tylerjw

🦀
Peace was never an option
View GitHub Profile
@tylerjw
tylerjw / gist:15ee8dacd68757bd671a77299309113f
Created September 15, 2023 18:17
Supply Chain Security Discussion un-RustConf23
- Sandbox build for wasm
- Debian downloads dependencies and then builds without network
- Cargo vender exists for this reason
- Build scripts exist for many reasons
- Build scripts that link to something need read-only file system access and to write to a target
- We need a capabilities for a build (network access, filesystem access)
- Figure out common patterns in build.rs and build libraries for build.rs that expresses capabilities
- Want developer experience with capabilities
- Person building the code is different from the author that knows what the crate needs
- cargo-vet was designed for for capabilities

Keybase proof

I hereby claim:

  • I am tylerjw on github.
  • I am squirrel428 (https://keybase.io/squirrel428) on keybase.
  • I have a public key whose fingerprint is 2B88 4816 A78D 2339 97A2 BEC6 2941 E439 2B78 DBE8

To claim this, I am signing this object:

@tylerjw
tylerjw / ros2_boost_export.md
Created February 25, 2021 23:01
ROS2 CMake magic for exporting Boost dependencies of library targets.

Do I need to know about this? (the problem)

If you have a line like this in your cmake:

find_package(Boost REQUIRED thread)

and later on you are creating and exporting a library:

@tylerjw
tylerjw / jog_arm_migration.md
Last active June 30, 2020 20:26
MoveIt JogArm -> Servo and API migration guide

MoveIt Servo migration guide

The ros package moveit_jog_arm is now named moveit_servo. If you were previously using moveit_jog_arm you will need to do a find/replace for these phrases in your code base:

  • jog_arm -> servo
  • JogArm -> Servo
  • jog_server -> servo_server

C++ API Changes

@tylerjw
tylerjw / gist:fbc69b8574e3f91967e0273b8f4785a2
Last active May 4, 2020 22:17
move_group_pick_place kinetic valgrind output
root@0a5d7aa235e9:~/ros_ws# rostest moveit_ros_planning_interface move_group_pick_place_test.test --text
... logging to /root/.ros/log/rostest-0a5d7aa235e9-10761.log
xacro: Traditional processing is deprecated. Switch to --inorder processing!
To check for compatibility of your document, use option --check-order.
For more infos, see http://wiki.ros.org/xacro#Processing_Order
xacro: Traditional processing is deprecated. Switch to --inorder processing!
To check for compatibility of your document, use option --check-order.
For more infos, see http://wiki.ros.org/xacro#Processing_Order
xacro: Traditional processing is deprecated. Switch to --inorder processing!
To check for compatibility of your document, use option --check-order.
@tylerjw
tylerjw / mtc_hackathon_notes.md
Created July 11, 2019 15:57
MTC Hackathon Notes
  1. Setup enviroment
mkdir ~/mtc_workspace
source /opt/ros/kinetic/setup.bash
catkin config --init
mkdir src
cd src
git clone git@github.com:PickNikRobotics/mtc_experiments.git
git clone git@github.com:PickNikRobotics/picknik_ur5_moveit_config.git
git clone git@github.com:ros-planning/moveit_task_constructor.git
@tylerjw
tylerjw / desk_trinket.ino
Created October 19, 2017 17:13
AMQ desk controller display for Adafruit 5V Trinket
/*
* Tyler's AMQ Desk Controller.
*/
#include <Wire.h>
#include <Adafruit_LEDBackpack.h>
#include <SoftwareSerial.h>
Adafruit_7segment disp = Adafruit_7segment();
SoftwareSerial serial(4,1);

Keybase proof

I hereby claim:

  • I am tylerjw on github.
  • I am tylerjw (https://keybase.io/tylerjw) on keybase.
  • I have a public key ASAj2YkcpfMzyrgPMpeilWSE6vJuj-h0_dzXhqiibBIPuAo

To claim this, I am signing this object:

@tylerjw
tylerjw / rally_computer.ino
Created August 18, 2017 00:17
Basic rally computer for use with Adafruit feathers.
#include <TinyGPS++.h>
// Enable one of these two #includes and comment out the other.
// Conditional #include doesn't work due to Arduino IDE shenanigans.
#include <Wire.h> // Enable this line if using Arduino Uno, Mega, etc.
//#include <TinyWireM.h> // Enable this line if using Adafruit Trinket, Gemma, etc.
#include "Adafruit_LEDBackpack.h"
#include "Adafruit_GFX.h"
Adafruit_7segment red = Adafruit_7segment();
@tylerjw
tylerjw / cachedgeo.py
Last active March 24, 2024 17:49
Library for caching requests to Nominatim in AWS DynamoDB
import boto3
from botocore.exceptions import ClientError
import decimal
from putItem import addr_to_query, query_to_addr
from geopy.geocoders import Nominatim
import json
import logging
logger = logging.getLogger(__name__)