A tool for creating a temporary Cloudflare tunnel allowing HTTP access to servers in private subnets.
The AWS Session Manager Plugin is required to connect to the EC2 instance.
Follow this link to install the plugin:
A tool for creating a temporary Cloudflare tunnel allowing HTTP access to servers in private subnets.
The AWS Session Manager Plugin is required to connect to the EC2 instance.
Follow this link to install the plugin:
# gh api repos/{owner}/{repo}/releases | |
gh api repos/golangci/golangci-lint-action/releases | jq -r .[0].name | |
# returns latest release name, ie: v6.1.1 |
import boto3 | |
import json | |
def generate_presigned_post(bucket_name, key_prefix='uploads/', expiration=3600): | |
# Initialize the S3 client | |
s3 = boto3.client('s3') | |
# Generate the pre-signed POST request | |
response = s3.generate_presigned_post( | |
Bucket=bucket_name, |
wget --mirror \ | |
--convert-links \ | |
--adjust-extension \ | |
--page-requisites \ | |
--no-parent ${WEBSITE:-https://example.com} | |
for i in $(find . -type f -name index.html | grep -v -E "(tag|feed)"); | |
do | |
path=$(dirname ${i}) | |
echo ${path} |
apt-get update | |
apt-get install -y ca-certificates curl gnupg | |
mkdir -p /etc/apt/keyrings | |
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --batch --yes --dearmor -o /etc/apt/keyrings/nodesource.gpg | |
NODE_MAJOR=20 | |
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" > /etc/apt/sources.list.d/nodesource.list | |
apt-get update | |
apt install -y nodejs |