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 / forgot_to_check_out_with_recurse_submodules.md
Last active March 17, 2022 18:06 — forked from cnlohr/forgot_to_check_out_with_recurse_submodules.md
Git forgot to clone recursively (forgot to check out with recurse submodules)
How to write good commits
Squashing
# Squashes the previous 2 commits and staged changes
git reset --soft HEAD~1 && git commit --edit -m"$(git log --format=%B --reverse HEAD..HEAD@{1})"
@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'
@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
# ~/.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
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
@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
@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",
# ]
# ///
"""
#!/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 / 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