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
############################################################################################################################################################# | |
############################################################################################################################################################# | |
# https://github.com/1x24 | |
# 1x24 AT tuta.io | |
# March 31, 2023 | |
############################################################################################################################################################# | |
# This PowerShell script checks if you have SSH keys on your Windows 10 or Windows 11 machine. | |
# If you do not have the SSH keys, it generates a modern one for you. | |
# In either case, it copies the key to your server and makes some configuration changes to make it easy to login with the keys. | |
# Save then use as follows: |
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
#!/bin/bash | |
############################################################################################################################################################ | |
############################################################################################################################################################ | |
# https://github.com/1x24 | |
# 1x24 AT tuta.io | |
# March 31, 2023 | |
############################################################################################################################################################ | |
# This BASH script checks if you have SSH keys on your iMac or MacOS laptop, or your Linux machine. | |
# If you do not have the SSH keys, it generates a modern one for you. | |
# In either case, it copies the key to your server and makes some configuration changes to make it easy to login with the keys. |
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
#!/bin/bash | |
################################################################################################################################################################## | |
################################################################################################################################################################## | |
# https://github.com/1x24 | |
# 1x24 AT tuta.io | |
# April 27, 2023 | |
################################################################################################################################################################## | |
# This BASH script automatically mounts remote directories from a Linux server to your MacOS computer, using SSHFS. | |
# It is assumed that you have already set up passwordless login using SSH keys. If not, you can use https://gist.github.com/1x24/c96a93d3c749e996319ac6001ef4e3ab | |
# The script will terminate its process if you didn't set up SSH key-based login to the remote server that you're attempting to mount. |
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
#!/bin/bash | |
# Load Hetzner DNS token from the file | |
token=$(cat /etc/hetzner-dns-token) | |
# Extract the top-level domain name from the full domain to find the correct DNS zone | |
search_name=$(echo $CERTBOT_DOMAIN | rev | cut -d'.' -f 1,2 | rev) | |
# Fetch the zone ID from Hetzner's DNS API based on the domain's search name | |
zone_id=$(curl -Ss -H "Auth-API-Token: ${token}" \ |
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
#!/bin/bash | |
# Load Hetzner DNS token from the file | |
token=$(cat /etc/hetzner-dns-token) | |
# Extract the top-level domain name from the full domain to find the correct DNS zone | |
search_name=$(echo $CERTBOT_DOMAIN | rev | cut -d'.' -f 1,2 | rev) | |
# Fetch the zone ID from Hetzner's DNS API based on the domain's search name | |
zone_id=$(curl -Ss -H "Auth-API-Token: ${token}" \ |