Skip to content

Instantly share code, notes, and snippets.

View raghavauppuluri13's full-sized avatar
🎯
Focusing

Raghava Uppuluri raghavauppuluri13

🎯
Focusing
View GitHub Profile
@raghavauppuluri13
raghavauppuluri13 / flash-jetson.sh
Last active October 17, 2025 00:32
Flash Jetpack 6.2 on jetson orin nano
#!/usr/bin/env bash
# DietPi flash for OrangePi5/5Pro (Linux + macOS)
# - Auto-picks largest removable disk >=4GB
# - No prompts (env: WIFI_SSID, WIFI_PASSWORD, HOSTNAME); only confirm target (skip with -y)
set -Eeuo pipefail; shopt -s nullglob
YES=0; [[ "${1:-}" == "-y" ]] && YES=1
TARGET="${TARGET:-OrangePi5Pro}"
IMAGE="DietPi_${TARGET}-ARMv8-Bookworm.img.xz"
URL="https://dietpi.com/downloads/images/${IMAGE}"
@raghavauppuluri13
raghavauppuluri13 / export-tensorrt.py
Created October 14, 2025 20:47
Export ultralytics models via tensorrt on Jetson Orin Nano
# /// script
# dependencies = [
# "bbos",
# "torch",
# "ultralytics",
# "onnx",
# "onnxruntime",
# "onnxruntime-gpu",
# "onnxslim",
# ]
@raghavauppuluri13
raghavauppuluri13 / connect-wifi.sh
Created October 14, 2025 00:35
bracketbot wifi jetson
#!/usr/bin/env bash
# bbssh: try bracketbot-<ID>.local, auto-increment ID up to 10 tries, then ssh on success
set -euo pipefail
if [[ $# -lt 1 ]]; then
echo "Usage: $0 <ID> [ssh-args...]" >&2
exit 1
fi
ID="$1"; shift || true
#!/usr/bin/env bash
# tio-diff-plug: prompt user to unplug, then wait for a new USB serial TTY and run tio on it.
set -euo pipefail
# --- Check tio availability ---
if ! command -v tio >/dev/null 2>&1; then
echo "[!] 'tio' not found."
if command -v brew >/dev/null 2>&1; then
echo "[i] Installing via Homebrew..."
brew install tio
@raghavauppuluri13
raghavauppuluri13 / fetch-stereo-calibration.py
Last active October 18, 2025 01:00
Fetch Bracket Bot Stereo Calibration
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.8"
# dependencies = [
# "opencv-python>=4.8.0",
# "numpy>=1.24.0",
# "gdown>=4.7.0",
# ]
# ///
"""
@raghavauppuluri13
raghavauppuluri13 / setup-bracketbot.sh
Last active October 21, 2025 16:50
BracketBot Flashing Tool
#!/usr/bin/env bash
# Jetson Orin Nano setup script
# - Repairs NVIDIA local repo hash mismatches or disables broken file: repos
# - Installs CUDA keyring, cuDSS (best-effort), cuDNN 9.3.0.75-1 (best-effort)
# - Installs dev tools (git, git-lfs, ninja, venv, ffmpeg, etc.)
# - Adds user to hardware groups
# - Enables passwordless sudo
# - Clones BracketBot repos
# - Adds and runs ALSA setup script for ReSpeaker Lite
# - Ends with su -l $USER
setopt globdots
setopt autocd
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@raghavauppuluri13
raghavauppuluri13 / obsidian-push-on-close.sh
Created May 30, 2023 14:37
Push/pull on obsidian open/close
#!/bin/bash
repo_path="/home/raghava/knowledge_vault"
branch="master"
commit_message="update"
state_file="/tmp/running-obsidian-state.txt"
while true; do
@raghavauppuluri13
raghavauppuluri13 / .vimrc
Last active February 1, 2023 15:07
vimrc
set shell=/bin/bash
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'