Skip to content

Instantly share code, notes, and snippets.

View dattasaurabh82's full-sized avatar
🤖

Saurabh Datta dattasaurabh82

🤖
View GitHub Profile
@dattasaurabh82
dattasaurabh82 / how_to_capture_teams_audio_on_mac_with_obs.md
Last active November 10, 2026 11:23
How to capture Teams meeting audio on Mac with OBS

How to Capture  Microsoft Teams Audio  on  Apple  using  OBS Studio 

This guide explains how to locally record raw audio from Microsoft Teams on a Mac using OBS Studio. This method avoids using Teams' built-in recording or third-party bots. Nobody in the meeting sees a recording banner or a bot joining, and the file stays on your Mac.

Important

Ofc, tell the participants that you are recording.

Prerequisites

  • macOS 13 (Ventura) or newer. The app audio capture used here does not exist on older versions.
@dattasaurabh82
dattasaurabh82 / orangepizero-armbian-reboot-hang-xradio.md
Created September 4, 2026 02:32
Orange Pi Zero (H2+) on Armbian: soft reboot hangs, power cycle works and how to solve it

Orange Pi Zero (H2+) on Armbian: soft reboot hangs, power cycle works

banner-ZRO-LTS Screenshot 2026-09-04 at 04 25 30
  • Date: 2026-09-04
  • Board: Xunlong Orange Pi Zero, Allwinner H2+ (sun8i, Cortex-A7, armv7l, 512 MB)
  • OS: Armbian 26.8.3 jammy, kernel 6.18.44-current-sunxi, u-boot 2026.07 (on SD)
@dattasaurabh82
dattasaurabh82 / rp2040-zero-arduino-cli-on-pi.md
Last active July 31, 2026 02:24
Flashing a Waveshare RP2040-Zero from a Raspberry Pi (headless, over SSH, fish shell) using `arduino-cli`

RP2040 boards + arduino-cli on Raspberry Pi (headless): setup notes

Flashing an RP2040 board (tested with a Waveshare RP2040-Zero) from a Raspberry Pi over SSH using arduino-cli. Written for a first-time setup. Notes from actual trial and error.

Things that will differ on your machine are marked like <this>. Pay attention to usernames, serial ports, and file paths: do not copy-paste those blindly.

1. Install arduino-cli and fix PATH

curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
@dattasaurabh82
dattasaurabh82 / pi5-cli-OS-but-running-chromium.md
Last active July 28, 2026 10:37
Chromium frontend on this minimal OS without installing a heavy, full-blown desktop

How to run a full screen browser (web-app) on a non-GUI Pi-OS

Context (Problem)

Imagine you have an embedded-system prototype running on a Pi 5 SBC, but you need a lightweight OS—for example, to boot faster. Typically, if you don’t need a GUI, you might use something like DietPi or the Raspberry Pi OS CLI (non-GUI) version. But what if you do need a GUI? Preferably a web app? Here’s a helpful nugget if you’re facing that scenario …

Approach

I didn’t realize that these days we can display a Chromium frontend on this minimal OS without installing a heavy, full-blown desktop environment. Since the Pi 5 (our target) defaults to modern Wayland graphics, we can use a “kiosk” approach. This runs a lightweight Wayland compositor whose sole job is to draw the Chromium browser directly to the assigned external display, saving RAM and CPU for other processes.

@dattasaurabh82
dattasaurabh82 / webcam_test_pi_cli_nongui.md
Created July 9, 2026 16:07
PI OS (minimal cli non-desktop version) webcam spike test
image

Listing Cameras (Multi-Cam Scenario)

To reliably list attached cameras and see which /dev/videoX path corresponds to which device, the best tool is v4l2-ctl.

First, install the utility if you don't already have it:

sudo apt upgrade -y
@dattasaurabh82
dattasaurabh82 / guide.md
Created June 9, 2026 16:53
Beginner-friendly markdown guide covering Pi NVMe cloning process from SD Card

Migrate Raspberry Pi 5 from SD card to NVMe SSD (headless / Pi OS Lite)

Clone a running Raspberry Pi OS install from the microSD card to an M.2 NVMe SSD (via the Pi M.2 HAT+) and boot fully from the SSD. No desktop, all over SSH.

Tested on: Raspberry Pi 5, Debian 13 (trixie), Pi OS Lite 64-bit, 256 GB NVMe.

Tip

Why not SD Card Copier? That is a desktop GUI tool. On a Lite/headless image, it does not exist. This guide uses rpi-clone instead.

@dattasaurabh82
dattasaurabh82 / README.md
Last active December 16, 2025 02:31
Raspberry Pi Tmux Dashboard on Boot

Raspberry Pi Tmux Dashboard on Boot

Auto-launch a tmux monitoring dashboard on Raspberry Pi boot (headless/CLI). Press any key within 10 seconds to skip and drop to shell.

Note

I use this for a pi that I carry on-site, either when I'm teaching or on a client side, where I need a MQTT broker and also where wifi setup shoudl be easy (So, my pi is running: headless pi wifi configurator)

Screenshot 2025-12-15 at 23 04 10

Prerequisites

  • Install Docker Desktop for Mac

  • Make sure socket is accessible

    Screenshot 2025-02-19 at 01 00 14

  • Install act using Homebrew:

@dattasaurabh82
dattasaurabh82 / instructions.md
Created July 18, 2024 04:31
git merge main from dev -- ignoring all changes

To make the main branch exactly like the dev branch by ignoring the changes in the main branch and overwriting it with dev:

git fetch origin

Check out to the main branch:

git checkout main