-
Give permission to user
1. AWS Managed Policy: AWSLambda_FullAccess 2. AWS Managed Policy: AmazonEventBridgeFullAccess 3. AWS Managed Policy: CloudWatchLogsFullAccess -
Create a Lambda Execution Role => Name => lambda-ec2-start-stop-role
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Register</title> | |
| <link rel="stylesheet" | |
| href="https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/css/intlTelInput.css" /> | |
| <style> | |
| /* optional: make input wider for country flag */ | |
| #phone { | |
| width: 250px; |
π Complete Laravel Docker Setup Guide
ποΈ Project Structure your-laravel-project/ βββ .dockerignore βββ Dockerfile βββ docker-compose.yml # Dev/QA βββ docker-compose.prod.yml # Production (local storage) βββ docker-compose.prod-s3.yml # Production (with S3) βββ .env.example
Option 1: Use with Ollama (easiest for local setup):
First, install and run Ollama:
# Install Ollama (if not already installed)
curl -fsSL https://ollama.com/install.sh | sh
# Start Ollama and pull a model
ollama serve &
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
| ## πΉ Vim Modes (most important concept) | |
| - `i` β Insert mode (start typing) | |
| - `Esc` β Back to Normal mode (always your safe key) | |
| - `:` β Command mode | |
| - `v` β Visual mode (select text) | |
| ------ | |
| ## πΉ File Commands |
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
| #!/bin/bash | |
| # Local testing version of deploy script | |
| # This simulates the deployment without actually pulling from git | |
| set -e | |
| BRANCH=$1 | |
| if [ -z "$BRANCH" ]; then |
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
| Test Development Setup: | |
| # Test dev compose file | |
| docker-compose -f docker-compose.dev.yml up --build | |
| # In another terminal, test endpoints | |
| curl http://localhost:8001/health | |
| curl http://localhost:8001/docs | |
| # Check logs in real-time | |
| docker-compose -f docker-compose.dev.yml logs -f |
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
| # Ubuntu | |
| sudo apt update -y | |
| # Install Docker | |
| https://docs.docker.com/engine/install/ubuntu/ | |
| # Install Docker Compose | |
| sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
| sudo chmod +x /usr/local/bin/docker-compose |