This file contains hidden or 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
# Step 1 — Installing Docker | |
# Update and Upgrade ubuntu machine | |
sudo apt update | |
sudo apt upgrade | |
# install a few prerequisite packages which let apt use packages over HTTPS | |
sudo apt install apt-transport-https ca-certificates curl software-properties-common | |
# Add the GPG key for the official Docker repository to your system |
This file contains hidden or 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 json | |
import boto3 | |
import os | |
region = 'us-east-1' | |
bedrock_runtime_client = boto3.client('bedrock-runtime', region_name=region) | |
def lambda_handler(event, context): | |
# TODO implement | |
# print(event['prompt']) |
This file contains hidden or 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
# git clone | |
git clone https://github.com/Significant-Gravitas/Auto-GPT.git Auto-GPT | |
# move to the newly created folder | |
cd Auto-GPT | |
# fetch all recent commits and branches | |
git fetch |
This file contains hidden or 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
// pull docker image | |
docker pull significantgravitas/auto-gpt:0.2.2 | |
// Create auto-gpt folder and cd | |
mkdir auto-gpt && cd auto-gpt | |
// Compose docker file and past .yml data below | |
nano docker-compose.yml | |
######### docker-compose.yml - start ########## |
This file contains hidden or 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
#!/usr/bin/python3.9 | |
import urllib3 | |
import boto3 | |
import base64 | |
import json | |
rekognition = boto3.client("rekognition") | |
http = urllib3.PoolManager() | |
This file contains hidden or 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 Telegram bot webhook url | |
https://api.telegram.org/bot<Your-Bot-token>/setWebhook?url=<Your-webhook-url> | |
// Get Telegram bot webhook url info | |
https://api.telegram.org/bot<Your-Bot-token>/getWebhookInfo | |
// Get Telegram bot file path | |
https://api.telegram.org/bot<Your-Bot-token>/getFile?file_id=<Your-file-id> | |
// Download Telegram bot file / Image |
This file contains hidden or 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "UpdateIngress", | |
"Effect": "Allow", | |
"Action": [ | |
"ec2:RevokeSecurityGroupIngress", | |
"ec2:AuthorizeSecurityGroupIngress" | |
], |
This file contains hidden or 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
name: ci-cd pipeline deploy to prod | |
on: | |
push: | |
branches: [ feature/github-action ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get Github action IP |