Skip to content

Instantly share code, notes, and snippets.

View abubaker417's full-sized avatar
🎯
Focusing

AbuBaker abubaker417

🎯
Focusing
View GitHub Profile
  1. Give permission to user

    1. AWS Managed Policy: AWSLambda_FullAccess
    2. AWS Managed Policy: AmazonEventBridgeFullAccess
    3. AWS Managed Policy: CloudWatchLogsFullAccess
    
  2. Create a Lambda Execution Role => Name => lambda-ec2-start-stop-role

<!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

@abubaker417
abubaker417 / ollama-setup.md
Last active February 10, 2026 19:28
Ollama

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 &

AWS Production Deployment Guide for Laravel with Docker πŸš€

Complete Step-by-Step Setup

This guide will help you deploy your Laravel project with Docker on AWS using production-level security practices.


Overview - What We'll Build

## πŸ”Ή 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
#!/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
@abubaker417
abubaker417 / gist:106bb3c39a0b0c9c528a24743330bcdb
Last active January 19, 2026 16:59
test-deploy-local-notes
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
# 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