Skip to content

Instantly share code, notes, and snippets.

View loopyd's full-sized avatar

Robert Michael Smith loopyd

View GitHub Profile
@loopyd
loopyd / install-reaper.sh
Created February 11, 2026 02:26
[bash] Install REAPER (https://www.reaper.fm/)
#!/usr/bin/env bash
# Also will build libSwell for you.
set -eo pipefail
C_RED=$(tput setaf 1)
C_GREEN=$(tput setaf 2)
C_BLUE=$(tput setaf 4)
C_RESET=$(tput sgr0)
@loopyd
loopyd / install-asesprite.sh
Created February 7, 2026 07:40
[bash] Install Aseprite pixel editor
#!/usr/bin/env bash
set -eo pipefail
C_RED=$(tput setaf 1)
C_GREEN=$(tput setaf 2)
C_RESET=$(tput sgr0)
fail() {
echo "${C_RED}Error: $1${C_RESET}" >&2
@loopyd
loopyd / install-blender.sh
Created February 7, 2026 06:39
[bash] Install Blender 3D
#!/usr/bin/env bash
set -eo pipefail
C_RED=$(tput setaf 1)
C_GREEN=$(tput setaf 2)
C_RESET=$(tput sgr0)
fail() {
echo "${C_RED}Error: $1${C_RESET}" >&2
@loopyd
loopyd / hp-omen-fix.sh
Last active January 30, 2026 23:52
[bash] HP Omen Fix for Linux Mint - Fixes error with missing audio firmware on this laptop
#!/bin/bash
# This script is used to fix the audio issues on HP Omen 15 laptop
#
# It installs the latest kernel, updates the sof firmware, removes old kernels, enables real-time audio support and disables mitigations for better performance, as well
# as applies additional tweaks to improve the overall system performance and stability on this laptop.
# Function to update sof firmware from sof project to the specified version
function update_sof() {
local sof_firmware_version="${1}"

🔓 Lab Coke Recipe

This recipe is the result of a year of experimentation, taste-testing via triple-blind sample group, and meticulous mixture adjustment to match the flavor profile of Coca-Cola as closely as possible, and its mass spectrolosis result, without actually being Coca Cola, and omitting ingredients that are difficult or impossible to obtain without actually being Coca-Cola themselves.

⚖️ This recipe was obtained via lab experimentation and legal reverse engineering means and discloses openly the "Natural Flavors" present in Coke. Further, the Coca Cola recipe isn't actually patented-- because it would reveal the secret formula.

⛔ This recipe does not use decocanized Cocoa Leaf extract, as there's only one company in the United States that makes it, and they pretty well only sell to Coca-Cola Corp. themselves. The resulting mass spectrogram is nearly identical to the original -- Thus it is not needed for this recipe.

All credit for this recipie goes to [LabCoatz](https://www.yo

@loopyd
loopyd / civitai_scraper.py
Last active October 9, 2025 07:51
[python] CivitAI Scraper - Data archival utility for CivitAI
""" =======================================================================================
civitai-scraper.py v1.0.3 deitydurg
=======================================================================================
This script is used to scrape CivitAI (https://civitai.com) for models and creators.
It will save the results to a json file, which can be used to bulk-download the models.
This script is not affiliated with CivitAI in any way, and is provided as-is with some
updates when I have time. Therefore you should use it at your own risk.
---------------------------------------------------------------------------------------
Questions? Comments? Need to scream at me for writing this? OK!
@loopyd
loopyd / 8bitdo_ultimate_wireless.sh
Created August 7, 2024 02:40
[bash] Fix for 8bitdo Ultimate Wireless Controller on Linux
#!/bin/bash
# Block script from running as non-root user
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
exit 1
fi
# Blacklist Nintendo Switch Pro Controller Driver
echo blacklist hid_nintendo | tee /etc/modprobe.d/notendo.conf
@loopyd
loopyd / Remove-HPbloatware.ps1
Created August 5, 2023 04:54 — forked from mark05e/Remove-HPbloatware.ps1
Remove HP bloatware
# ██████╗ ███████╗███╗ ███╗ ██████╗ ██╗ ██╗███████╗ ██╗ ██╗██████╗
# ██╔══██╗██╔════╝████╗ ████║██╔═══██╗██║ ██║██╔════╝ ██║ ██║██╔══██╗
# ██████╔╝█████╗ ██╔████╔██║██║ ██║██║ ██║█████╗ ███████║██████╔╝
# ██╔══██╗██╔══╝ ██║╚██╔╝██║██║ ██║╚██╗ ██╔╝██╔══╝ ██╔══██║██╔═══╝
# ██║ ██║███████╗██║ ╚═╝ ██║╚██████╔╝ ╚████╔╝ ███████╗ ██║ ██║██║
# ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═══╝ ╚══════╝ ╚═╝ ╚═╝╚═╝
#
# ██████╗ ██╗ ██████╗ █████╗ ████████╗██╗ ██╗ █████╗ ██████╗ ███████╗
# ██╔══██╗██║ ██╔═══██╗██╔══██╗╚══██╔══╝██║ ██║██╔══██╗██╔══██╗██╔════╝
# ██████╔╝██║ ██║ ██║███████║ ██║ ██║ █╗ ██║███████║██████╔╝█████╗
@loopyd
loopyd / deilog.sh
Last active February 11, 2025 09:34
[bash] deilog
#!/bin/bash -i
set -euo pipefail
shopt -s extglob
# As cheap as bash logging gets (without hand-gulping each func to a single line) - relentlessly typed by hand in 7 minutes
# - by loopyd. You like this ascii vomit??? drop me some SOL: 7Y7hG3o7o1FDgCUQtiQkN6gDxumTh1QeM9CQKnCHCb2x
CSCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
C_RED="\033[31m" C_GREEN="\033[32m" C_YELLOW="\033[33m" C_BLUE="\033[34m" C_CYAN="\033[36m" C_MAGENTA="\033[35m" C_GREY="\033[90m" C_BOLD="\033[1m" C_RESET="\033[0m"
QUIET=${QUIET:-0} LOG_FILE=${LOG_FILE:-} LOG_LEVEL=${LOG_LEVEL:-INFO}
ENV_CMD="source ${NVM_DIR}/nvm.sh && nvm use 20.18.2 --save && conda activate the-gimp"
strip_ansi() { local _msg="$*"; sed -E 's/\x1B\[[0-9;]*[mK]//g; s/^[[:space:]]+//; s/[[:space:]]+$//' <<< "$_msg"; }
#! /usr/bin/env bash
# breathmint.sh - "You need a breath mint!"
# loopyd@github.com
# Get a fresh copy of a git repository in a specified folder, every time, and inject an .env file placed next to for config
# Checks
if [ "$EUID" -eq 0 ]; then
echo "This script must not be run as root" >&2
exit 1