You can now start/stop this service with: systemctl start my-service
/ systemctl stop my-service
.
To enable this service when startup, run systemctl enable my-service
.
References: https://transang.me/create-startup-scripts-in-ubuntu/
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: |
# 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) |
# 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" |
# 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 |
# terraform.tf | |
terraform { | |
required_version = ">= 1.2.5" | |
required_providers { | |
aws = { | |
source = "hashicorp/aws" | |
version = ">= 4.22.0" | |
} | |
} |
AWSTemplateFormatVersion: 2010-09-09 | |
Resources: | |
S3Bucket: | |
Type: AWS::S3::Bucket | |
DeletionPolicy: Retain | |
Properties: | |
AccessControl: Private | |
BucketName: !Sub | |
- custom-bucket-name-${AccountID} |
#!/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 |
You can now start/stop this service with: systemctl start my-service
/ systemctl stop my-service
.
To enable this service when startup, run systemctl enable my-service
.
References: https://transang.me/create-startup-scripts-in-ubuntu/
#!/usr/bin/env bash | |
sudo systemctl set-default multi-user.target | |
echo "\n▂▃▅▇█▓▒░ Mission Accomplished ░▒▓█▇▅▃▂\n" | |
source: https://forums.raspberrypi.com/viewtopic.php?t=178405
# Download the script as executable
$> sudo wget http://www.fars-robotics.net/install-wifi -O /usr/bin/install-wifi
$> sudo chmod +x /usr/bin/install-wifi