Skip to content

Instantly share code, notes, and snippets.

View pearsonc's full-sized avatar

Chris Pearson pearsonc

View GitHub Profile
@pearsonc
pearsonc / update_added_at.sh
Last active December 3, 2025 11:44
Fix Plex Recently Added
#/bin/bash
sudo systemctl stop plexmediaserver
sudo /usr/lib/plexmediaserver/Plex\ SQLite "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db" "UPDATE metadata_items SET added_at = strftime('%s', 'now', '-1 year') WHERE added_at > strftime('%s', 'now');"
sudo systemctl start plexmediaserver
Boot from Live media
Try ubuntu before installing
Launch terminal
sudo -s
Stop dmraid
dmraid -an
install mdadm
sudo -s
@pearsonc
pearsonc / ubuntu-raid.sh
Last active April 18, 2024 14:34 — forked from umpirsky/ubuntu-raid.sh
Install Ubuntu on RAID 0 and UEFI/GPT system
sudo -s
sgdisk -z /dev/sda -g # Delete all partitions and create a gpt table
sgdisk -z /dev/sdb -g # Delete all partitions and create a gpt table
sgdisk -n 1:0:+100M -t 1:ef00 -c 1:"EFI System" /dev/sda
sgdisk -n 2:0:+8G -t 2:fd00 -c 2:"Linux RAID Swap" /dev/sda
sgdisk -n 3:0:0 -t 3:fd00 -c 3:"Linux RAID" /dev/sda
sgdisk /dev/sda -R /dev/sdb -G
mkfs.fat -F 32 /dev/sda1