Skip to content

Instantly share code, notes, and snippets.

View dayCod's full-sized avatar
🚬
Smoking

Wirandra Alaya dayCod

🚬
Smoking
View GitHub Profile
@dayCod
dayCod / fundamental-security-check.md
Created July 28, 2025 03:11
Laravel Fundamental Security Check Before Deploy

1. Turn Off Debug Mode

Check your .env:

APP_ENV=production
APP_DEBUG=false

Must-do

  • Triple-check APP_DEBUG before every deployment
  • Automate this check in CI/CD
@dayCod
dayCod / Dockerfile
Last active April 9, 2025 05:06
Laravel Docker Setup for Laravel Applications
FROM php:8.4-fpm
RUN apt-get update -y && apt-get install -y openssl zip unzip git
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN apt-get update && apt-get install -y libpq-dev
RUN docker-php-ext-install pdo pdo_pgsql
RUN php -m | grep mbstring
WORKDIR /app
COPY . /app
RUN composer install
@dayCod
dayCod / .gitignore
Created April 8, 2025 05:17
Common Gitignore Files for AI Agent Development
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
# C extensions
*.so
# Distribution / packaging
.Python
env/
@dayCod
dayCod / requirements.txt
Created April 8, 2025 05:15
Requirements Text Files for AI Agent Development
# Default
beautifulsoup4
rank-bm25
fastapi
langchain
matplotlib
pre-commit
python-dotenv
ray
seaborn