Skip to content

Instantly share code, notes, and snippets.

View ramaID's full-sized avatar
🏠
Working from home

Qisthi Ramadhani ramaID

🏠
Working from home
View GitHub Profile
@diogogpinto
diogogpinto / Instructions.MD
Created January 3, 2025 13:14
Best Laravel AI Prompt to use with Claude

I have been utilizing artificial intelligence to enhance and optimize my codebases. After evaluating various models, applications, and editors, I find the claude.ai interface with a Pro Account to be the most effective. Here’s the approach I’ve developed to achieve optimal results:

This gist contains a carefully crafted prompt and a script designed to convert your entire Laravel codebase (excluding the resources folder, which can be easily added if needed) into a TXT file with the following structure:

<File Start: ./path/filename.extension> Content of file <End File: ./path/filename.extension>

To implement this method:

@jonerickson
jonerickson / deploy.yml
Created November 7, 2024 16:09
Vapor Deploy
name: Deploy Application
env:
SIDECAR_APP_NAME: ${{ secrets.SIDECAR_APP_NAME }}
SIDECAR_ACCESS_KEY_ID: ${{ secrets.SIDECAR_ACCESS_KEY_ID }}
SIDECAR_SECRET_ACCESS_KEY: ${{ secrets.SIDECAR_SECRET_ACCESS_KEY }}
SIDECAR_REGION: ${{ secrets.SIDECAR_REGION }}
SIDECAR_ARTIFACT_BUCKET_NAME: ${{ secrets.SIDECAR_ARTIFACT_BUCKET_NAME }}
SIDECAR_EXECUTION_ROLE: ${{ secrets.SIDECAR_EXECUTION_ROLE }}
VAPOR_API_TOKEN: ${{ secrets.VAPOR_API_TOKEN }}
@abelcallejo
abelcallejo / README.md
Last active April 17, 2025 16:00
Creating a starter kit for Laravel

Laravel logo Composer logo

Creating a starter kit for Laravel

You are probably wondering how Laravel made some starter kits to be easily installable using just the following commands:

composer install laravel/breeze     # Quickly integrates the starter kit to the composer environment
php artisan breeze:install          # Quickly integrates the starter kit to the Laravel environment

If you want to build a project with the same installation setup, you are on the right track. This documentation is all about doing exactly just that. Without further ado, let's just jump right into it!

@shinsenter
shinsenter / Reduce docker image size.md
Last active March 14, 2024 02:22
Make your Docker images smaller by reducing the number of layers
@shinsenter
shinsenter / Experimental Docker structure.md
Last active December 27, 2024 09:14
Docker structure for deploying to multiple environments

Beginning

There are many approaches to implementing a reuse of a common preset for Docker services for multiple environments, such as production and local environments.

This makes it possible to ensure the highest consistency for different environments with the same code-base. Implementing reuse of docker compose options also makes it easier to manage them.

I found on github a project called serversideup/spin. They took an approach using a feature called Docker overrides, to change some properties of common services for different environments.

After reading through their documentation, I realized that there are a few real-life cases where this project can not implement (or is difficult to archive).

@SumitBando
SumitBando / AlpineToSvelte.md
Last active February 28, 2024 11:45
Tried to use a web page template in a SvelteKit project, unexpectedly found some Alpine.js embedded. Here was the translation.
Original AlpineJS Svelte Translation Explanation
<?php
/**
* In your Livewire model for the list of items
*/
class ItemList extends Component
{
// rest of component
@tanthammar
tanthammar / HasLinks.php
Last active July 5, 2022 18:22
No more controllers! Only Laravel LiveWire routes and a handy Eloquent Model trait.
@LukeMathWalker
LukeMathWalker / .gitlab-ci.yml
Last active December 9, 2024 18:12
GitLab CI - Rust setup
image: "rust:latest"
default:
before_script:
- rustc --version
- cargo --version
stages:
- test
@LukeMathWalker
LukeMathWalker / audit.yml
Last active April 26, 2025 03:29
GitHub Actions - Rust setup
name: Security audit
on:
schedule:
- cron: '0 0 * * *'
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
jobs:
security_audit: