Skip to content

Instantly share code, notes, and snippets.

@ShivamB25
ShivamB25 / go_installer_latest.sh
Last active July 17, 2026 10:10
go install script
#!/usr/bin/env bash
# Installs (or upgrades) the latest stable Go release on Linux.
set -euo pipefail
INSTALL_DIR="/usr/local"
# Detect architecture
case "$(uname -m)" in
x86_64) ARCH="amd64" ;;
aarch64) ARCH="arm64" ;;

SABnzbd PAR2 Verification and Repair Explained

This document details the process SABnzbd uses to verify the integrity of downloaded files using PAR2 and repair them if necessary. PAR2 (Parchive 2) is crucial for Usenet downloads as it allows reconstruction of missing or corrupted data using redundancy files.

SABnzbd employs a multi-stage process involving internal checks and an external PAR2 command-line utility.

Phase 1: Parsing PAR2 Index Files (sabnzbd/par2file.py)

Before verification can begin, SABnzbd needs to understand the structure of the downloaded set according to the PAR2 index file (usually setname.par2). The function parse_par2_file handles this.

@ShivamB25
ShivamB25 / xrdp-nvidia-setup.sh
Last active April 6, 2024 09:53 — forked from Nexarian/xrdp-nvidia-setup.sh
Setup for XRDP using Nvidia Acceleration
#!/usr/bin/env bash
set -e
cd ~
sudo -v
# Make sure system is in a good, updated, clean, state.
sudo apt-get -y update