Skip to content

Instantly share code, notes, and snippets.

@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 March 16, 2026 19:41
Build librealsense for T261/T265 on Raspberry Pi 4 running Ubuntu 22.04 in the big year 2025

Realsense for T261

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 of librealsense that still supports T261 and use an older version of Ubuntu to get it working.

My System Info

samad@imu:~/rover$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
@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?