Skip to content

Instantly share code, notes, and snippets.

View mariogarcia-ar's full-sized avatar
🎯
Focusing

Mario Garcia mariogarcia-ar

🎯
Focusing
View GitHub Profile

✅ Estrategia Básica de Ramas para CI/CD

1️⃣ Ramas principales

  • main (o master): Siempre lista para producción.

    • Solo código estable y desplegable.
    • Rama protegida (requiere revisión de PR).
  • develop: Rama de integración.

Laravel Sail Cheatsheet

Installation & Setup

Install Sail in existing project

composer require laravel/sail --dev
php artisan sail:install

Copilot Instructions for fastapi_ml_service

Project Purpose

This is a production-ready FastAPI backend for serving APIs, real-time features, and machine learning models. It supports:

  • RESTful endpoints
  • WebSocket-based real-time communication
  • Secure authentication (JWT/OAuth2)
  • Async database operations (SQL and NoSQL)
  • Distributed ML workloads (e.g., Stable Diffusion via Celery)
  • Observability with logging and metrics

To install DataTables in a Laravel 12 project, you typically use the yajra/laravel-datatables package, which provides server-side processing support for jQuery DataTables. Here's a complete step-by-step guide:


✅ Step 1: Install the Package via Composer

composer require yajra/laravel-datatables-oracle:"^10.0"

This version is compatible with Laravel 10–12.

@mariogarcia-ar
mariogarcia-ar / 01-Introduction to TypeScript.md
Last active December 21, 2024 20:52
Tutorials for TypeScript

Sure! Here's a basic tutorial on TypeScript to help you get started. 🚀


Introduction to TypeScript

TypeScript is a superset of JavaScript that adds static typing and other powerful features, making it easier to develop scalable and robust applications.


1. Installation

@mariogarcia-ar
mariogarcia-ar / instalaciones-ts.md
Created December 21, 2024 00:00 — forked from Klerith/instalaciones-ts.md
Instalaciones del curso de TypeScript
#!/bin/bash
# Stop all running containers
echo "Stopping all running containers..."
docker stop $(docker ps -a -q)
# Remove all containers
echo "Removing all containers..."
docker rm $(docker ps -a -q)
@mariogarcia-ar
mariogarcia-ar / bearer-token.php
Created February 11, 2024 18:55 — forked from wildiney/bearer-token.php
[deprecated] PHP - How to get and set Bearer Token
<?php
/**
* ALERT! There are more than ten years since I wrote the first version (adaptation) of this code with PHP 5.6,
* then I changed my code stack and I couldn't mantain this code anymore. Ten years ago worked like a charm.
* Fell free to test, use, fork, update, etc. and if possible put in the comments how to fix,
* if it doesn't work for you as it is, so other people could find answers.
**/
/**
* Get hearder Authorization
@mariogarcia-ar
mariogarcia-ar / README.md
Created December 29, 2023 21:31 — forked from nielslange/README.md
Genesis Framework snippets

Genesis Framework snippets

Accessibility

Enable Accessibility Features

  • functions.php:
//* Enable Genesis Accessibility Components
add_theme_support( 'genesis-accessibility', array( '404-page', 'drop-down-menu', 'headings', 'rems', 'search-form', 'skip-links' ) );
@mariogarcia-ar
mariogarcia-ar / gsap-3-intro-animation.markdown
Created September 17, 2023 14:54
GSAP 3 Intro Animation