Skip to content

Instantly share code, notes, and snippets.

View ShoGinn's full-sized avatar
🏠
Working from home

Scott Ginn ShoGinn

🏠
Working from home
  • Greater Tampa Bay Area, FL
  • 21:57 (UTC -04:00)
  • LinkedIn in/scottdginn
View GitHub Profile
@ShoGinn
ShoGinn / gist:e5a75126ec9780825cd39dbbce4e192d
Last active August 16, 2026 12:38
Self-Hosting HP UEFI BIOS Updates via Local HTTP (Elitedesk 800 G5)

Self-Hosting HP UEFI BIOS Updates via Local HTTP

HP commercial desktops (like the EliteDesk 800 G5) support network BIOS updates from the UEFI setup screen. However, modern HP endpoints enforce HTTPS/TLS configurations that older UEFI network stacks cannot negotiate, resulting in network connection failures.

You can resolve this by mirroring HP's upstream files and hosting them over plain HTTP (Port 80) from any secondary machine on your local network.


Architecture & Request Flow

@ShoGinn
ShoGinn / update_blocky.sh
Created August 10, 2025 15:36
Update the Blocky app
#!/usr/bin/env bash
# Blocky Update Helper Script
# Updates Blocky to the latest version and restarts the service
# Configuration - Modify these variables if needed
BLOCKY_DIR="/opt/blocky"
SERVICE_NAME="blocky"
CONFIG_FILE="config.yml"
# Function to detect OS and architecture
@ShoGinn
ShoGinn / aws_cleanup.sh
Last active July 9, 2025 14:00
Cleanup Resources on AWS
#!/bin/bash
# AWS Resource Cleanup Script
# This script removes AWS resources containing a selected pattern in their names
# USE WITH CAUTION - This will permanently delete resources
set -e # Exit on any error
# Colors for output
RED='\033[0;31m'
@ShoGinn
ShoGinn / sakf.plugin.zsh
Last active June 14, 2025 22:55
SOPS KEY File OMZ Plugin
# sakf.plugin.zsh
# OMZ plugin to quickly set SOPS_AGE_KEY_FILE to an absolute path
# Save this file as .oh-my-zsh/custom/plugins/sakf/sakf.plugin.zsh
# and add 'sakf' to your plugins list in .zshrc
# or run omz plugin add sakf
function sakf() {
if [ -z "$1" ]; then
if [ -n "$SOPS_AGE_KEY_FILE" ]; then
echo "SOPS_AGE_KEY_FILE is set to: $SOPS_AGE_KEY_FILE"
@ShoGinn
ShoGinn / gitbranches.md
Created September 20, 2024 16:25 — forked from nicholashoule/gitbranches.md
Git prune and delete merged local branches

Git prune and delete merged local branches

Prune
git remote prune origin --dry-run
git remote prune origin
@ShoGinn
ShoGinn / nvidia_allocator.py
Last active August 27, 2024 00:22 — forked from guruevi/nvidia_allocator.py
Proxmox vGPU Hook Script
#!/usr/bin/env python3
import logging
import os
import re
import sys
from pathlib import Path
# Thanks to: https://gist.github.com/guruevi/7d9673c6f44f49b1841eaf49bbd727f9
# This script is used to set the vGPU type for NVIDIA vGPU passthrough in Proxmox VE.
# The script is called from the Proxmox VE hook scripts.
@ShoGinn
ShoGinn / test.txt
Created October 18, 2023 20:18
regex for unicode (emojis)
When searching for unicode emojis using regex use:
[^\x00-\x7f]
@ShoGinn
ShoGinn / rtlamr.json
Created March 22, 2020 21:45
rtlmr consumption
[
{
"time": "2020-03-21T21:40:00.000Z",
"rtlamr.first_consumption": 8759628
},
{
"time": "2020-03-21T21:44:00.000Z",
"rtlamr.first_consumption": 8759632
},
{
#!/bin/bash
# This is a companion script to https://github.com/konstantin-kelemen/arduino-amiibo-tools
# The original post this was crafted for was https://games.kel.mn/en/create-amiibo-clones-with-arduino/
# For more info go to https://games.kel.mn/en/companion-script-to-simplify-amiibo-cloning-with-arduino/
#requirements:
#sha1sum (part of coreutils)
#xxd (part of vim)
#hexdump
#amiitool (https://github.com/socram8888/amiitool)