- Ansible 2 for Beginners
- Automate it!
- Continuous Delivery with Docker and Jenkins
- Deploying and Running Docker Containers
- Deployment with Docker
- DevOps for Networking
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
# 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 |
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
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, |
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
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} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder