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 os | |
import boto3 | |
from botocore.exceptions import ClientError | |
from os import environ | |
rekognition=boto3.client('rekognition') | |
collectionId='IveFaceCollection' | |
image_bucket="wecarebillstatic" | |
prefix = "face/" |
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
mkdir -p ~/.kube | |
sudo curl --silent --location -o /usr/local/bin/kubectl "https://amazon-eks.s3-us-west-2.amazonaws.com/1.11.5/2018-12-06/bin/linux/amd64/kubectl" | |
sudo chmod +x /usr/local/bin/kubectl | |
go get -u -v github.com/kubernetes-sigs/aws-iam-authenticator/cmd/aws-iam-authenticator | |
sudo mv ~/go/bin/aws-iam-authenticator /usr/local/bin/aws-iam-authenticator | |
sudo yum -y install jq | |
cd ~/environment | |
git clone https://github.com/brentley/ecsdemo-frontend.git | |
git clone https://github.com/brentley/ecsdemo-nodejs.git | |
git clone https://github.com/brentley/ecsdemo-crystal.git |
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
ip=$(curl http://169.254.169.254/latest/meta-data/public-ipv4) | |
echo "Code Server" | |
echo "http://$ip:8443" | |
security_group=$(ec2-metadata -s | cut -d " " -f 2); | |
aws ec2 authorize-security-group-ingress --group-name $security_group --protocol tcp --port 8443 --cidr 0.0.0.0/0 | |
version="1.32.0-310" | |
wget https://github.com/codercom/code-server/releases/download/$version/code-server-$version-linux-x64.tar.gz | |
tar -xvzf code-server-$version-linux-x64.tar.gz | |
cd code-server-$version-linux-x64 | |
chmod +x code-server |
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
sudo yum install graphviz -y | |
sudo pip install aws-visualizer | |
profilename=worldskills | |
profileregion=us-east-1 | |
rm -rf target/$profilename | |
mkdir -p target/$profilename/default | |
mkdir -p target/$profilename/securitygroups | |
mkdir -p target/$profilename/subnets |
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
# Change to default Python3 | |
alias python='python3' | |
python --version | |
# Install Code Formatter for Python and you need to set AWS Cloud9「Preferences」->「Python Support」->「Custom Code Formatter」 | |
# yapf -i "$file" | |
sudo pip install yapf | |
sudo yum -y update | |
sudo yum -y install aws-cli | |
sudo -H pip install awscli --upgrade | |
# Install brew and update SAM CLI to the latest version. |
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
#Install | |
npm install --global prettier | |
npm i -g esformatter | |
# Open Preferences -> TypeScript Support -> Format Code on Save -> On |
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
curl -s https://gist.githubusercontent.com/wongcyrus/a4e726b961260395efa7811cab0b4516/raw/6a045f51acb2338bb2149024a28621db2abfcaab/resize.sh | bash /dev/stdin 60 |
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
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted | |
set-executionpolicy remotesigned | |
Install-Module MicrosoftTeams | |
Import-Module MicrosoftTeams | |
Disconnect-MicrosoftTeams | |
$User = "[email protected]" | |
$Password = "" | |
$ClassListFolder="C:\Users\developer\Documents\WindowsPowerShell\" |
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 | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose | |
docker-compose --version | |
wget https://gist.githubusercontent.com/wongcyrus/a4e726b961260395efa7811cab0b4516/raw/543fe335adaf7222f5f4fca475cf716d61b9a77b/resize.sh | |
chmod +x resize.sh | |
./resize.sh |
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
sudo yum update -y | |
wget https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip | |
unzip aws-sam-cli-linux-x86_64.zip -d sam-installation | |
sudo ./sam-installation/install --update | |
sam --version |
OlderNewer