Skip to content

Instantly share code, notes, and snippets.

View jtmoon79's full-sized avatar
💭
😇

James Thomas Moon jtmoon79

💭
😇
View GitHub Profile
@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]
@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 / 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 / openssh-latest-build-install.md
Last active July 26, 2024 07:57
OpenSSH: build and install the latest version
@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 / pip.sh
Created January 21, 2022 06:31
Python pip wrapper
#!/usr/bin/env bash
#
# wrap python pip commands with helpful but tedious-to-write options
#
set -e
set -u
cmd=${1-help}
shift
@jtmoon79
jtmoon79 / venv-create.sh
Last active July 20, 2022 22:46
Python virtualenv create
#!/usr/bin/env bash
#
# helper to quickly create a Python virtualenv
# latest at https://github.com/jtmoon79/dotfiles/blob/master/utilities/venv-create.sh
set -eu
# XXX: not very portable
source /etc/os-release
@jtmoon79
jtmoon79 / network-certificate-authority-and-host-certificate-creation-instructions.md
Last active January 6, 2023 05:42
Network Certificate Authority and Host Certificate creation instructions
@jtmoon79
jtmoon79 / python-embedded-for-Win10.md
Last active December 8, 2024 11:20
fully configuring embedded Python on Windows 10

Update: use PowerShell script PythonEmbed4Win.ps1.

The instructions in this gist have some subtle problems and this gist will not be updated.

About


Keybase proof

I hereby claim:

  • I am jtmoon79 on github.
  • I am dooderjt (https://keybase.io/dooderjt) on keybase.
  • I have a public key ASDDc_Zh-ZlWNTe9LYxFDdiMXL60HMpy9qgc6kvEOaZ6Hgo

To claim this, I am signing this object: