Skip to content

Instantly share code, notes, and snippets.

View ubdussamad's full-sized avatar

Samad Haque (Sam) ubdussamad

View GitHub Profile
@ubdussamad
ubdussamad / Lab_3_Working_Code.cpp
Created February 17, 2026 21:28
Working code from Lab-3 (as discussed in Lab-4)
/*
* Design of Autonomous Systems Lab 3 Code (Spr'26)
* Sam Ul Haque
*/
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cstring>
/*
* Design of Autonomous Systems Lab 3 Code (Spr'26)
* Sam Ul Haque
*/
#include <iostream>
#include <cstdio>
#include <cstring>
#include <array>
@ubdussamad
ubdussamad / building_librealsense.md
Last active June 26, 2026 17:46
Build librealsense for T261/T265 on Raspberry Pi 4 running Ubuntu 22.04 in the big year 2025

Realsense for T261/T265

Building Realsense that works with the T261/5 module in the big 2025 is painful to say the least. Since T261's software support is crap in the recent versions of librealsense, I had to build an older version (v2.51.1) of librealsense that still supports T261/5 and use an older version of Ubuntu to get it working. I have tested this build on both ARM (raspberry Pi 4) and x86 (Ubuntu 20.04.6 LTS).

This document is centered around linux, if you're on windows, this probably isn't for you. But this version definetly supports the T265/1 even for windows so at least thats helpful!

On plugging the T265/1 IMU for the first time, it shows up as Intel Myriad VPU [Movidius Neural Compute Stick] but after you run any librealsense binary it'll say something along the lines of Intel Corp. Intel(R) RealSense(TM) Tracking Camera T265. This is because unless the librealsense initilaizes it, the IMU stays in bootloader mode and won't show up as the actual camera!!.

My System Info

@ubdussamad
ubdussamad / 10.0.3-trace-events-mod
Created July 24, 2025 23:33
QEMU Modfile for Version:10.0.3
# See docs/devel/tracing.rst for syntax documentation.
# TCG related tracing
# cpu-exec.c
exec_tb(void *tb, uintptr_t pc) "tb:%p pc=0x%"PRIxPTR
exec_tb_nocache(void *tb, uintptr_t pc) "tb:%p pc=0x%"PRIxPTR
exec_tb_exit(void *last_tb, unsigned int flags) "tb:%p flags=0x%x"
exec_tb_block(uintptr_t pc) " pc=0x%" PRIxPTR
# cputlb.c
/*
* emulator main execution loop
*
* Copyright (c) 2003-2005 Fabrice Bellard
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
#!/bin/bash
PREFIX="${PREFIX:-/usr/local/apache_clean}"
CC="afl-clang-fast"
CXX="afl-clang-fast++"
echo -e " \e[32mAPR"
echo
echo "Running apr with: c-compiler:$CC $CFLAGS c++-compiler:$CXX $CXXFLAGS"
sleep 2
@ubdussamad
ubdussamad / mac-vendor.txt
Created April 6, 2019 07:12 — forked from aallan/mac-vendor.txt
List of MAC addresses with vendors identities
000000 Officially Xerox
000001 SuperLAN-2U
000002 BBN (was internal usage only, no longer used)
000003 XEROX CORPORATION
000004 XEROX CORPORATION
000005 XEROX CORPORATION
000006 XEROX CORPORATION
000007 XEROX CORPORATION
000008 XEROX CORPORATION
000009 powerpipes?