Booting Orange Pi 5 from NVMe SSD – Unixorn guide
- Flash the official Orange Pi Ubuntu/Debian image (or Armbian) to an SD card.
- Insert that card and the NVMe, then boot your board.
| what is this shit? |
| import json | |
| def generate_grid_points(x_length_cm, y_length_cm, points_in_x, points_in_y, min_dist_x_cm, min_dist_y_cm): | |
| # Generate points along x and y axes with minimum distance from the walls | |
| x_points = [int(round(i * (x_length_cm / (points_in_x - 1)))) for i in range(points_in_x)] | |
| y_points = [int(round(i * (y_length_cm / (points_in_y - 1)))) for i in range(points_in_y)] | |
| # Filter out points that are too close to the walls | |
| x_points = [x for x in x_points if min_dist_x_cm <= x <= x_length_cm - min_dist_x_cm] | |
| y_points = [y for y in y_points if min_dist_y_cm <= y <= y_length_cm - min_dist_y_cm] |
| # ~/.config/starship.toml | |
| add_newline = true | |
| continuation_prompt = "[▸▹ ](dimmed white)" | |
| format = """[┌──\\(](bold green)$username[㉿](bold green)$hostname[\\)-\\[](bold green)$time[\\]-\\[](bold green)$directory[\\]](bold green)\ | |
| (\n[│](green)( $python) |( $git_branch$git_commit$git_state)) | |
| [└](bold green)$cmd_duration[─](bold green)[\\$ ](bold blue)""" | |
| right_format = '''$battery''' |
| # VMware Startup PowerShell Script | |
| # This script starts multiple VMware virtual machines in the background | |
| # and handles lock file removal if necessary. | |
| # ---- Configuration ---- | |
| $vmrunPath = "C:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe" | |
| $logFile = Join-Path $PSScriptRoot "vm_startup_log.txt" | |
| $delay = 50 # Delay between starting VMs (in seconds) | |
| # ---- VM Paths ---- |
| @echo off | |
| code "%cd%" |
| <# | |
| .SYNOPSIS | |
| Auto-login to IUST captive portal. | |
| .DESCRIPTION | |
| Set your credentials below, or leave blank to be prompted. | |
| #> | |
| # ========== CONFIG ========== | |
| $Username = "" # e.g. "student123" |
Booting Orange Pi 5 from NVMe SSD – Unixorn guide
| #!/bin/bash | |
| # === Configuration === | |
| IMAGE_NAME="react-native-android-builder" | |
| IMAGE_TAG="latest" | |
| IMAGE_FILE="$IMAGE_NAME.tar.xz" | |
| DOCKERFILE_PATH="Dockerfile" | |
| BUILD_CONTEXT="." | |
| # === Build === |
Want your server to greet you with a nice picture (ASCII/ANSI art) when you SSH in? This guide shows how to generate different-width ASCII art pieces and automatically show the best-fitting one on login.