Skip to content

Instantly share code, notes, and snippets.

View threeal's full-sized avatar

Alfi Maulana threeal

View GitHub Profile
<?xml version="1.0" ?>
<!-- =================================================================================== -->
<!-- | This document was autogenerated by xacro from urdf/robot/v10.urdf.xacro | -->
<!-- | EDITING THIS FILE BY HAND IS NOT RECOMMENDED | -->
<!-- =================================================================================== -->
<robot name="openarm">
<!-- Is the robot being simulated in gazebo? -->
<!-- <xacro:arg name="gazebo" default="false" /> -->
<link name="world"/>
<joint name="openarm_body_world_joint" type="fixed">
#!/bin/bash
# =============================================================================
# Usage: sudo ./setup_can.sh [interface_name1] [interface_name2] ...
# sudo ./setup_can.sh --help
#
# Description:
# This script configures CAN devices using systemd-networkd with a fixed
# bitrate (1 Mbps) and ensures they always have consistent interface names
# across reboots or replugging. Interface names are provided as arguments.
@threeal
threeal / openarm-quickstart.md
Last active October 2, 2025 07:47
This guide walks you through setting up and running teleoperation using OpenArm robots.

Quickstart: Teleoperation with OpenArm Robots

This guide walks you through setting up and running teleoperation with OpenArm robots.

Setup

Operating System

Make sure you are running Ubuntu 24.04. If not, follow this installation guide to install Ubuntu 24.04 on your computer.

@threeal
threeal / persistent-can-iface-name.md
Last active September 29, 2025 05:37
Persistent CAN Interface Naming with udev

Persistent CAN Interface Naming with udev

By default, CandleLight and other USB-CAN adapters show up as can0, can1, etc. depending on plug order.
To ensure consistent naming (e.g. always mycan0), you can create a custom udev rule.


Steps

1. Find the device identifier

@threeal
threeal / project-status.md
Last active March 13, 2024 04:40
This gist is being used to track my projects
@threeal
threeal / mega
Last active July 21, 2023 11:14
mediamaz
Processing new leads since 7/17/2023
Found 87 new leads
New leads categories:
- Hallo Mega Penerjemah (Website): 17 new leads
- Hallo Mega Penerjemah: 1 new leads
- W - Helo Mega Penerjemah: 17 new leads
- `{`W`}` - Helo Mega Penerjemah: 9 new leads
- [W] - Helo Mega Penerjemah: 2 new leads
- Hallo Mega Legalisasi (Microsite): 1 new leads
Process 4166 stopped
* thread #22, name = 'BlurNode', stop reason = EXC_BAD_ACCESS (code=2, address=0x7ff840f3e3f0)
frame #0: 0x00007ff840f3e3f0 libc++abi.dylib`vtable for __cxxabiv1::__class_type_info + 16
libc++abi.dylib`vtable for __cxxabiv1::__class_type_info:
-> 0x7ff840f3e3f0 <+16>: subb $0x44, %al
Target 0: (LuminaStudio) stopped.
(lldb) bt
* thread #22, name = 'BlurNode', stop reason = EXC_BAD_ACCESS (code=2, address=0x7ff840f3e3f0)
* frame #0: 0x00007ff840f3e3f0 libc++abi.dylib`vtable for __cxxabiv1::__class_type_info + 16
frame #1: 0x0000000102521cea LuminaStudio`std::__1::__function::__func<rpc::RPCPoll::poll()::$_0, std::__1::allocator<rpc::RPCPoll::poll()::$_0>, void (nlohmann::json_abi_v3_11_2::basic_json<std::__1::map, std::__1::vector, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, long long, unsigned long long, double, std::__1::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::__1::vector<unsigned char, std::__1::allocator<
import argparse
import time
from pathlib import Path
import cv2
import torch
import torch.backends.cudnn as cudnn
from numpy import random
from models.experimental import attempt_load
import argparse
import csv
import os
import re
parser = argparse.ArgumentParser(description='filter csv file')
parser.add_argument('filename', help='input file to be used')
args = parser.parse_args()

TeX Live Guide

Install TeX Live

  • download the install script https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
  • extract tarball using tar -xf.
  • in the extracted folder, run ./install-tl -gui
  • wait program to load the archive.
  • Click install to start the installation process using the default configuration.
  • Edit /etc/environment and append the TeX Live binary directory (/usr/local/texlive/2021/bin/x86_64-linux/) to the PATH list.