Skip to content

Instantly share code, notes, and snippets.

View jtmoon79's full-sized avatar
πŸ’­
πŸ˜‡

James Thomas Moon jtmoon79

πŸ’­
πŸ˜‡
View GitHub Profile
@jtmoon79
jtmoon79 / set-datetime-of-pics-vids.ps1
Last active July 8, 2022 22:59
set filesystem datetime of jpg and mp4 files
#!powershell
<#
.SYNOPSIS
Use exiftool to set file system datetimes values to those found within embedded media
tags of .mp4 and .jpg files.
.DESCRIPTION
Use exiftool (https://exiftool.org/) to set file system datetime attributes
FileModifyDate, FileAccessDate, FileCreateDate.
@jtmoon79
jtmoon79 / openssh-latest-build-install.md
Last active April 1, 2025 18:30
OpenSSH: build and install the latest version
@jtmoon79
jtmoon79 / wireguard-site-to-site.sh
Last active September 29, 2024 20:59
Wireguard Site to Site generator
#!/usr/bin/env bash
#
# https://gist.github.com/jtmoon79/c951f81f621bb87ddb60836245aca4ff
#
# Script to generate a site-to-site Wireguard IPv4 VPN tunnel
# configuration files, and commands for systemd services.
# This script only covers a narrow scope of possible networking arrangements.
# It may not perfectly fit the user's needs, but it may provide the user with
# a working example that they can modify for their needs.
#
@jtmoon79
jtmoon79 / wireguard-client-to-site.sh
Last active December 6, 2022 02:09
Wireguard Client To Site generator
#!/usr/bin/env bash
#
# https://gist.github.com/jtmoon79/217e55272c55631ba6025c9f890b3dde
#
# Script to generate a client-to-site Wireguard IPv4 VPN tunnel
# configuration files, and commands for systemd services.
# This script only covers a narrow scope of possible networking arrangements.
# It may not perfectly fit the user's needs, but it may provide the user with
# a working example that they can modify for their needs.
#
@jtmoon79
jtmoon79 / rename-paystatements-from-paperlessemployee.sh
Created September 13, 2023 18:43
Rename PDF files downloaded from paperlessemployee.com
#!/usr/bin/env bash
#
# rename pdf files from paperlessemployee.com
#
set -euo pipefail
if [[ ${#} -ne 1 ]] && [[ ${#} -ne 2 ]]; then
echo "usage:
$(basename "${0}") SelectedPayStatements.pdf [Agency Name]