This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /// script | |
| # dependencies = [ | |
| # "bbos", | |
| # "torch", | |
| # "ultralytics", | |
| # "onnx", | |
| # "onnxruntime", | |
| # "onnxruntime-gpu", | |
| # "onnxslim", | |
| # ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # /// script | |
| # requires-python = ">=3.8" | |
| # dependencies = [ | |
| # "opencv-python>=4.8.0", | |
| # "numpy>=1.24.0", | |
| # "gdown>=4.7.0", | |
| # ] | |
| # /// | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ~/.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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| repo_path="/home/raghava/knowledge_vault" | |
| branch="master" | |
| commit_message="update" | |
| state_file="/tmp/running-obsidian-state.txt" | |
| while true; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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' |
NewerOlder