Skip to content

Instantly share code, notes, and snippets.

View maheshtpvtech's full-sized avatar

Mahesh Vaidya maheshtpvtech

View GitHub Profile
import boto3
import os
# Supply your AWS credentials and region here
aws_access_key_id = 'YOUR_AWS_ACCESS_KEY_ID'
aws_secret_access_key = 'YOUR_AWS_SECRET_ACCESS_KEY'
region_name = 'YOUR_AWS_REGION'
bucket_name = 'YOUR_S3_BUCKET_NAME'
local_filename = 'mahesh.txt'
@maheshtpvtech
maheshtpvtech / Dockerfile
Last active April 23, 2025 04:46
Dockerfile
FROM php:8.2-cli
# Install required packages
RUN apt-get update && apt-get install -y \
git unzip curl
# Install Composer
RUN curl -sS https://getcomposer.org/installer | php -- \
--install-dir=/usr/local/bin --filename=composer
@maheshtpvtech
maheshtpvtech / forge-cli-err.txt
Last active April 23, 2025 04:54
forge-cli error
Command Uused: docker run -e FORGE_API_TOKEN=${FORGE_API_TOKEN} forge-cli forge env:push pim-backend-uat.ppdstest.tpvai.com uat --no-interaction --verbose
FORGE_API_TOKEN is valid and exists as "docker run -e FORGE_API_TOKEN=${FORGE_API_TOKEN} forge-cli forge site:list" works and shows sites I have created.
In Application.php line 122:
[LaravelZero\Framework\Exceptions\ConsoleException]
The environment variables for that site have not been downloaded.