Skip to content

Instantly share code, notes, and snippets.

View saasscaleup's full-sized avatar
😃
Working on the next Amazing thing 🔥

Scale-Up SaaS saasscaleup

😃
Working on the next Amazing thing 🔥
View GitHub Profile
@saasscaleup
saasscaleup / install-docker-and-ollama-webui-on-ubuntu.txt
Last active July 22, 2024 23:59
Install Docker in Ubuntu 22.04
# 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
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'])
# 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
@saasscaleup
saasscaleup / auto-gpt-docker-install.txt
Last active September 8, 2023 09:19
How to instal and run auto-gpt with docker
// 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 ##########
#!/usr/bin/python3.9
import urllib3
import boto3
import base64
import json
rekognition = boto3.client("rekognition")
http = urllib3.PoolManager()
// 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
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "UpdateIngress",
"Effect": "Allow",
"Action": [
"ec2:RevokeSecurityGroupIngress",
"ec2:AuthorizeSecurityGroupIngress"
],
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