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

🔓 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 / 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
@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 / config_ssh.sh
Last active July 14, 2024 22:27
[bash] Do 98% of the work configuring SSH secure passwordless login on your new VPS
#!/usr/bin/env bash
# config_ssh.sh - A script to set up your VPS SSH configuration
# Author: loopyd <loopyd@github.com> 2024 | GPL3.0 Permassive License
# Run this script on your shiny new VPS to harden it and set up SSH keys and passwords.
# Note: If you are using a hosting proivder such as hostinger, you need to add the .pub keys in
# the dashbaord, as an overlayfs by the provider is used to overwrite the ssh configuration.
#
# If you experience errors trying to log in, try to add a ~/.ssh/config on your host with the following:
@loopyd
loopyd / ezrkflash.sh
Last active July 7, 2024 20:59
[bash] EzRkFlash - Easy Rockchip flashing tool (rkdevtool) wrapper.
#!/bin/bash
shopt -s extglob dotglob
IMAGE_PATH=${IMAGE_PATH:-}
LOADER_PATH=${LOADER_PATH:-}
FLASH_OFFSET=${FLASH_OFFSET:-0}
ERASE_EMMC_SIZE=${ERASE_EMMC_SIZE:-0}
WAIT_DEVICE=${WAIT_DEVICE:-false}
WAIT_DEVICE_TIMEOUT=${WAIT_DEVICE_TIMEOUT:-30}
@loopyd
loopyd / install-docker.sh
Created June 19, 2024 03:52
[bash] Install Docker
#!/bin/bash
ARGS=($*)
BOLD=$(tput bold)
RED=$(tput setaf 1)
GREEN=$(tput setaf 2)
BLUE=$(tput setaf 4)
RESET=$(tput sgr0)
function __run_cmd() {