Skip to content

Instantly share code, notes, and snippets.

View Arthur2500's full-sized avatar
๐Ÿ”‹

Arthur25 Arthur2500

๐Ÿ”‹
View GitHub Profile
@Arthur2500
Arthur2500 / nvidia-uninstall.sh
Last active August 16, 2025 22:45
Handy script for automated removal of Nvidia CUDA Drivers on Linux (Except Arch)
#!/bin/sh
# Full NVIDIA/CUDA removal for common Linux distros (Ubuntu/Debian/RHEL/CentOS/Rocky/Fedora/AMZN)
set -eu
status() { echo ">>> $*" >&2; }
error() { echo "ERROR: $*" >&2; exit 1; }
warning() { echo "WARNING: $*" >&2; }
TEMP_DIR="$(mktemp -d)"
@Arthur2500
Arthur2500 / nvidia-install.sh
Last active August 6, 2025 18:52
Handy script for automated installation of Nvidia CUDA Drivers on Linux (Except Arch)
#!/bin/sh
# This script installs Nvidia Drivers on Linux.
set -eu
status() { echo ">>> $*" >&2; }
error() { echo "ERROR $*"; exit 1; }
warning() { echo "WARNING: $*"; }
TEMP_DIR=$(mktemp -d)
@Arthur2500
Arthur2500 / ubuntu-raid.sh
Last active April 18, 2024 09:28 — forked from leowinterde/ubuntu-raid.sh
Install Ubuntu on RAID 1 and UEFI/GPT system without SWAP - 2017
# http://askubuntu.com/questions/505446/how-to-install-ubuntu-14-04-with-raid-1-using-desktop-installer
# http://askubuntu.com/questions/660023/how-to-install-ubuntu-14-04-64-bit-with-a-dual-boot-raid-1-partition-on-an-uefi%5D
sudo -s
apt-get -y install mdadm grub-efi-amd64
sgdisk -z /dev/nvme0n1
sgdisk -z /dev/nvme1n1
sgdisk -n 1:0:+100M -t 1:ef00 -c 1:"EFI System" /dev/nvme0n1
sgdisk -n 2:0:0 -t 2:fd00 -c 2:"Linux RAID" /dev/nvme0n1
sgdisk /dev/nvme0n1 -R /dev/nvme1n1 -G
@Arthur2500
Arthur2500 / open-webui-update.sh
Last active May 21, 2024 12:09
Open-Webui Updater
#!/bin/bash
sudo apt update
sudo apt upgrade -y
sudo systemctl stop open-webui
cd open-webui
git pull origin main
@Arthur2500
Arthur2500 / open-webui-install.sh
Last active June 26, 2024 17:59
Full open-webui-installer
#!/bin/bash
# Install necessary packages
sudo apt update
sudo apt install -y git curl python3 python3-pip python3-venv uvicorn
# Install Node.js
curl -fsSL https://deb.nodesource.com/setup_21.x | sudo -E bash -
sudo apt-get install -y nodejs
@Arthur2500
Arthur2500 / lwp-cloudflare-dyndns.sh
Created March 10, 2022 00:02 — forked from Firsh/lwp-cloudflare-dyndns.sh
Cloudflare as Dynamic DNS
#!/bin/bash
# Cloudflare as Dynamic DNS
# From: https://letswp.io/cloudflare-as-dynamic-dns-raspberry-pi/
# Based on: https://gist.github.com/benkulbertis/fff10759c2391b6618dd/
# Original non-RPi article: https://phillymesh.net/2016/02/23/setting-up-dynamic-dns-for-your-registered-domain-through-cloudflare/
# Update these with real values
auth_email="[email protected]"
auth_key="global_api_key_goes_here"
zone_name="example.com"