🤷♂️
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
BEGIN:VCARD | |
VERSION:3.0 | |
FN:John Doe | |
ORG:Example Corp | |
TITLE:Software Engineer | |
TEL;TYPE=WORK,VOICE:+1234567890 | |
EMAIL:john.doe@example.com | |
END:VCARD |
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
provider "aws" { | |
region = "us-east-1" | |
} | |
locals { | |
s3_origin_id = "S3-business-card" | |
} | |
variable "zone_id" { | |
type = string |
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
async def generate_blurred( | |
image_path: str, | |
output_path: str, | |
original_filename: str, | |
original_extension: str, | |
faces_detail: dict, | |
ids_requested: dict, | |
) -> str: | |
image = Image.open(image_path) | |
imgWidth, imgHeight = image.size |
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 | |
# Cacheable references | |
rekognition = boto3.client("rekognition") | |
# Function to call Amazon Rekognition and detect faces in an image | |
async def detect_faces(image_path): | |
"""Count the number of faces in one app""" | |
with open(image_path, "rb") as image_file: |
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
# Complete file at https://github.com/Cloud-DevOps-Labs/kubernetes-in-aws-the-easy-way/blob/workshop/IaC/locals.tf | |
locals { | |
name = basename(path.cwd) | |
region = data.aws_region.current.name | |
cluster_version = "1.23" | |
vpc_cidr = "10.0.0.0/16" | |
azs = slice(data.aws_availability_zones.available.names, 0, 3) |
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
# Complete file at: https://github.com/Cloud-DevOps-Labs/kubernetes-in-aws-the-easy-way/blob/workshop/IaC/main.tf | |
################################################################################ | |
# Kubernetes addons | |
################################################################################ | |
module "kubernetes_addons" { | |
source = "github.com/aws-ia/terraform-aws-eks-blueprints?ref=v4.28.0/modules/kubernetes-addons" |
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
# Complete file at: https://github.com/Cloud-DevOps-Labs/kubernetes-in-aws-the-easy-way/blob/workshop/IaC/main.tf | |
################################################################################ | |
# EKS Blueprints Setup | |
################################################################################ | |
module "eks_blueprints" { | |
source = "github.com/aws-ia/terraform-aws-eks-blueprints?ref=v4.28.0" | |
# EKS Cluster VPC and Subnet mandatory config |
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
# terraform.tf | |
terraform { | |
required_version = ">= 1.2.5" | |
required_providers { | |
aws = { | |
source = "hashicorp/aws" | |
version = ">= 4.22.0" | |
} | |
} |
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
AWSTemplateFormatVersion: 2010-09-09 | |
Resources: | |
S3Bucket: | |
Type: AWS::S3::Bucket | |
DeletionPolicy: Retain | |
Properties: | |
AccessControl: Private | |
BucketName: !Sub | |
- custom-bucket-name-${AccountID} |
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://forum.raspiaudio.com/t/mic-installation-guide/17/30 | |
: <<'DISCLAIMER' | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
NewerOlder