Skip to content

Instantly share code, notes, and snippets.

View anton-matosov's full-sized avatar
🤖
Robotics mode on

Anton Matosov anton-matosov

🤖
Robotics mode on
View GitHub Profile
@anton-matosov
anton-matosov / X1C_wipe.gcode
Last active April 6, 2025 17:21
Wipe gcode for Bambu X1C printer, insert into layer change Gcode of printer settings
G1 X60 Y265; nozzle wipe position
G92 E0 ; zero extruder
G1 E-0.5 F300 ; retract filament
G1 X100 F5000 ; wipe right
G1 X70 F15000 ; wipe left
G1 X100 F5000 ; wipe right
G1 X70 F15000 ; wipe left
G1 X100 F5000 ; wipe right
G1 X70 F15000 ; wipe left
G1 X100 F5000 ; wipe right
@anton-matosov
anton-matosov / cargo-llvm-codecov-converter.dockerfile
Created March 9, 2025 22:36
cargo-llvm-codecov-converter dockerfile
FROM rust:latest AS builder
WORKDIR /tools
RUN cargo install --root . --git https://github.com/maboesanman/cargo-llvm-codecov-converter.git
RUN apt update && apt install tree -yq
RUN tree .
FROM scratch AS final
COPY --from=builder /tools/bin/cargo-llvm-codecov-converter /llvm-codecov-converter
@anton-matosov
anton-matosov / workflow.yml
Created March 4, 2025 00:53
Github workflow ENV variable to lowercase using github-script
- name: Force SLUG to lowercase
uses: actions/github-script@v6
with:
github-token: n/a
script: |
core.exportVariable('SLUG', process.env.SLUG.toLowerCase());
@anton-matosov
anton-matosov / getenv.py
Created July 25, 2024 01:31
Cross platform environment variable inspector (tested on macOS Sonoma 14.5 and python 3.12)
#!/usr/bin/env python
import psutil
import sys
if len(sys.argv) >= 2:
pid = int(sys.argv[1])
else:
import questionary
answer = questionary.select(
locale # check for UTF-8
sudo apt update && sudo apt install locales
sudo locale-gen en_US en_US.UTF-8
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
export LANG=en_US.UTF-8
locale # verify settings
sudo apt install -y software-properties-common
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt install curl -y # if you haven't already installed curl
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
sudo apt update
sudo apt upgrade
# Desktop-Full Install: (Recommended) : Everything in Desktop plus 2D/3D simulators and 2D/3D perception packages
# sudo apt install ros-noetic-desktop-full
[Processing: qt_gui_cpp]
[Processing: qt_gui_cpp]
[Processing: qt_gui_cpp]
[Processing: qt_gui_cpp]
--- output: qt_gui_cpp
-- Found ament_cmake: 1.3.2 (/Users/antonmatosov/opt/miniconda3/envs/ros_env/share/ament_cmake/cmake)
-- Found Python3: /Users/antonmatosov/opt/miniconda3/envs/ros_env/bin/python3.9 (found version "3.9.13") found components: Interpreter
-- Override CMake install command with custom implementation using symlinks instead of copying resources
-- Found pluginlib: 5.1.0 (/Users/antonmatosov/opt/miniconda3/envs/ros_env/share/pluginlib/cmake)
@anton-matosov
anton-matosov / robot-web-tools-errors
Created July 9, 2022 21:10
Robot web tools ROS 2 Humble errors
~/D/ros2_ws> ros2 launch rosbridge_server rosbridge_websocket_launch.xml (ros_env)
[INFO] [launch]: All log files can be found below /Users/antonmatosov/.ros/log/2022-07-09-14-02-37-528359-MacBook-Pro.attlocal.net-22418
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [rosbridge_websocket-1]: process started with pid [22420]
[INFO] [rosapi_node-2]: process started with pid [22421]
[rosbridge_websocket-1] [INFO] [1657400558.922724393] [rosbridge_websocket]: Rosbridge WebSocket server started on port 9090
[rosbridge_websocket-1] [INFO] [1657400560.228789243] [rosbridge_websocket]: Client connected. 1 clients total.
[rosbridge_websocket-1] [ERROR] [1657400560.307346519] [rosbridge_websocket]: [Client 43df0659-04ef-4217-a40c-0fd4278fca0c] [id: subscribe:/rosout:5] subscribe: Unable to import msg class Log from package rosgraph_msgs. Caused by module 'rosgraph_msgs.msg' has no attribute 'Log'
[rosapi_node-2] Traceback (most recent call last):
[rosapi_node-2] File "/Users/antonmatosov/Dev
@anton-matosov
anton-matosov / ros2_lazy_py.repos
Created October 26, 2020 05:57
ROS2 Python lazy linking
repositories:
ament/ament_cmake:
type: git
url: https://github.com/ament/ament_cmake.git
version: foxy
ament/ament_index:
type: git
url: https://github.com/ament/ament_index.git
version: foxy
ament/ament_lint:
@anton-matosov
anton-matosov / ros2.yml
Created February 21, 2020 07:18
Conda environment YAML to build and run ROS2
name: ros2
channels:
- conda-forge
dependencies:
- apr=1.6.5=h0b31af3_1
- asio=1.14.0=h4a8c4bd_0
- assimp=4.1.0=h69fbfa3_0
- bash=5.0.011=h93121df_0
- boost-cpp=1.70.0=h75728bb_2
- bzip2=1.0.8=h0b31af3_2