Skip to content

Instantly share code, notes, and snippets.

View bonelifer's full-sized avatar

William Jacoby bonelifer

View GitHub Profile
@Its4Nik
Its4Nik / system-info.sh
Created July 18, 2025 12:39
This is a simple bash script that will gather system boot info and general hardware info. (Only tested on Arch!)
#!/bin/bash
set -euo pipefail
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
BOLD='\033[1m'
NC='\033[0m'
@mikestankavich
mikestankavich / install-gh-cli.sh
Last active July 19, 2025 21:51
Convenience script to install GitHub CLI on Ubuntu
#!/bin/bash
set -e
###############################################################################################
# This is a convenience script for installing the Github gh CLI. Invoke as follows: #
# curl -fsSL https://gist.github.com/yourusername/gist-hash/raw/install-gh-cli.sh | sudo bash #
# Author: Mike Stankavich https://github.com/mikestankavich [email protected] #
###############################################################################################
# Root check
sudo apt -y update
sudo apt -y install ca-certificates gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
@jackskhakis
jackskhakis / add_artist_list.sh
Last active July 19, 2025 23:07
Script to add list of artists (in a text file) to lidarr, this method bypasses the difficulties that are currently present in lidarr with relation to searching and adding new artists
#!/bin/bash
# Path to the text file with artist names (one per line)
artist_list_file="./artist_list.txt"
# Where Lidarr should create new artist folders
# This must match a configured Root Folder in Lidarr
lidarr_root="/music/"
# Lidarr API details
@jackskhakis
jackskhakis / add_artists.sh
Last active July 19, 2025 23:07
Script to add list of artists (in a folder) to lidarr, this method bypasses the difficulties that are currently present in lidarr with relation to searching and adding new artists
#!/bin/bash
# Folder where existing artist folders are located (source)
source_dir="/mnt/media/music/old"
# The Lidarr root folder path to add new artists under
# This must match a configured Root Folder in Lidarr settings
lidarr_root="/music/new"
# Lidarr API access
@thereisnotime
thereisnotime / README.md
Created October 13, 2024 14:35
Install Home Assistant Supervised on Debian 12

Setup HA Supervised on Debian 12

How to Run

  1. Do sudo su
  2. Copy-paste the script (it will reboot the machine)

NOTE: I am using with with Vagrat's shell provisioner as it is easier (with privileged execution).

Next Steps

#!/usr/bin/env bash
lidarrUrl=""
lidarrApiKey=""
curl -s "$lidarrUrl/api/v1/album/monitor" --request PUT --header "X-Api-Key:"${lidarrApiKey} -H "Content-Type: application/json" --data-raw '{"albumIds":['$lidarr_album_id'], "monitored": false}'
@NiceRath
NiceRath / google_takeout_mail_analysis.sh
Created April 17, 2024 10:52
Script to analyze Google Workspace/Gmail Mailboxes (Mailing Lists, Top Senders)
#!/bin/bash
set -eo pipefail
# NOTES:
# to use on backup files created by Google Takeout: https://support.google.com/accounts/answer/3024190?hl=en
# creates lists of top N mail senders & distribution-lists @ /tmp
# can be used to create Google Vault retentions to clean-up old mails or spam: https://support.google.com/vault/answer/2990828?hl=en
if [-z "$1" ]
@TehPeGaSuS
TehPeGaSuS / UnrealIRCd Systemd.md
Last active July 19, 2025 21:26
UnrealIRCd Systemd Service Units
@Salvoxia
Salvoxia / immich_auto_album.py
Last active May 1, 2024 16:40 — forked from REDVM/immich_auto_album.py
Create and populate albums on Immich based on folder name (comaptible with Immich v1.95.x), moved to here: https://github.com/Salvoxia/immich-folder-album-creator
import requests
import os
import argparse
from collections import defaultdict
# I have photos in subfolders like :
# /mnt/media/Photos/2023-08 Holidays
# /mnt/media/Photos/2023-06 Birthday
# /mnt/media/Photos/2022-12 Christmas