Build, install, and run the latest OpenSSH Server as a systemd service.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# wrap python pip commands with helpful but tedious-to-write options | |
# | |
set -e | |
set -u | |
cmd=${1-help} | |
shift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Update: use PowerShell script PythonEmbed4Win.ps1.
The instructions in this gist have some subtle problems and this gist will not be updated.
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:
NewerOlder