Skip to content

Instantly share code, notes, and snippets.

View troyfontaine's full-sized avatar

Troy Fontaine troyfontaine

View GitHub Profile
@troyfontaine
troyfontaine / 1-setup.md
Last active September 9, 2026 13:46
Signing your Git Commits on MacOS

Methods of Signing Git Commits on MacOS

Last updated March 13, 2024

This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.

@troyfontaine
troyfontaine / installing_t2_ubuntu.md
Created August 6, 2026 03:49
Installing T2 Ubuntu on an Intel-based 2018 Mac Mini

Installing T2 Ubuntu on an Intel-based 2018 Mac Mini

Disclaimer: I am not liable or assuming responsibility for any actions/inactions you may or may not take while following these steps or those of the T2 Linux Wiki. Follow these at your own risk

This was extremely tricky, but in the end I was able to accomplish by following these steps. Note, you should follow the project's guidance on pre-install and recommendations on preparing the ISO/USB drive. This guide picks up at the "Disable Secure Boot" step.

Phase 1: Recovery Mode

This phase was tricky-because timing is critical when attempting to use the keyboard shortcut.

@troyfontaine
troyfontaine / palworld-dedicated-server-setup.md
Last active August 3, 2026 02:00
Set up a Palworld Dedicated Server On Ubuntu 22.04

How to Set up a Palworld Dedicated Server On an Ubuntu 22.04 Host (VM or baremetal)

WORK IN PROGRESS

Because the documentation scattered around the internet is pretty inconsistent, I'm putting everything I've found that seems to work together here.

Overview

This took too much effort to get sorted out, so I'm documenting everything figured out so far here.

@troyfontaine
troyfontaine / README.md
Last active July 2, 2026 13:51
Running Badblocks on External USB Drives attached to a TrueNAS Scale Machine

Badblocks on TrueNAS Scale

  1. Connect your USB drive to the machine
  2. Navigate to the TrueNAS Scale shell by opening the menu, going to System Settings and then clicking on Shell
  3. Locate the drive's device ID using the lsblk command
  4. Check the recommended block size using the command blockdev --getbsz /dev/<YOUR BLOCK DEVICE ID>
  5. Note the block size you got from the last command
  6. STOP! Have you ensured that the USB device does NOT have any important data on it? If it does, stop now, unplug it from the TrueNAS Scale machine and back it up elsewhere! Running the specific badblocks command we'll use will destroy data on the drive!
  7. Okay, you've confirmed there is no data on the drive you need? Good!
  8. Fire up a new tmux session tmux new -s badblocks_
@troyfontaine
troyfontaine / README.md
Last active June 16, 2026 13:27
Yubikey for AWS-Vault

How to Set up Yubikey for AWS-Vault

Tired of using a password for aws-vault? Want to use that lovely touch pad on your Yubikey? Here is how! (Shamelessly borrowed from this comment by Frederico Araujo). Note, this is not the same as configuring your terminal to use a Yubikey setup to be used as TOTP for AWS-instead of an app!

NOTE: These steps are for use on macOS and should be similar for Linux

  1. Remove existing credential from AWS Vault Run only if you already have it setup before:

aws-vault remove myprofile

@troyfontaine
troyfontaine / PythonAndPowerShell.md
Last active April 16, 2026 22:16
Setting up Aliases for Python on Windows PowerShell

Getting Your Python (Development) On!

Python for Windows is really easy to install-but what if you had started in the world of MacOS/*nix OSes and miss that single command to call Python or Pip? What if you don't have access to modify your environment PATH?

Windows PowerShell has a feature called "Profiles" which allows you to configure your PowerShell in a similar fashion as you could with Bash, Zsh, etc.

Pretty cool huh?

Create a Profile

@troyfontaine
troyfontaine / README.md
Created August 22, 2024 14:21
HP iLO4 On Ubuntu Noble 24.04 for use with HP ProLiant 8th Gen Servers

HP iLO4 on Ubuntu Noble 24.04 for use with HP ProLiant 8th Gen Servers

If you're a homelabber and are interested in attempting to use the iLO4's agentless management functionality (how is it agentless if you have to install software on the OS?), you can do so by installing the HP AMS Package

Install the Agentless Management Service

sudo su -
wget https://downloads.linux.hpe.com/SDR/repo/mcp/pool/non-free/hp-ams_2.8.3-3056.1ubuntu16_amd64.deb
dpkg -i hp-ams_2.8.3-3056.1ubuntu16_amd64.deb
@troyfontaine
troyfontaine / README.md
Last active February 7, 2026 12:40
How to Update the Firmware of a Crucial Consumer SSD on Linux via the Terminal

How to Update the Firmware of a Crucial Consumer SSD on Ubuntu 22.04 via the Terminal

This has been tested on Ubuntu 22.04 with 3x Crucial MX500 1TB SSDs purchased in 2023

  1. Install the required packages
    sudo apt-get install -y smartmontools unzip curl
    
  2. Check your current firmware version and note it-you will want to be sure that you are actually updating the firmware version (replace sdX with your actual device's identifier-leaving off any partition numbers as you're checking the block device and not the data on it)
@troyfontaine
troyfontaine / README.md
Last active January 22, 2026 07:31 — forked from bergelfs/README.md
certbot-dns-cloudflare on Asustor NAS running ADM 5

This will configure an Asustor NAS running ADM 5 to use a letsencrypt issued certificate without exposing the NAS to the internet (by using DNS Challenge instead of using port forwarding). To accomplish this, we need to use certbot with DNS-01 challenge to Cloudflare. To perform this task, you must SSH into the NAS.

  1. Elevate the terminal to root
sudo su
  1. Setup the required directories
@troyfontaine
troyfontaine / asus-falchion-nx-key-combinations.md
Last active August 1, 2025 07:13
ASUS Falchion NX Key Combinations

ASUS Falchion NX Key Combinations

Function Keys

Hot Key Function
FN + DEL Scroll Lock
FN + CTRL Menu
FN + P Print screen
FN + PgDn End