Skip to content

Instantly share code, notes, and snippets.

View alphaolomi's full-sized avatar
🎯
Focusing

Alpha alphaolomi

🎯
Focusing
View GitHub Profile
@alphaolomi
alphaolomi / README.md
Created July 18, 2025 17:11 — forked from markshust/README.md
Zero-downtime Laravel deployment with GitHub Actions

GitHub Actions Deploy Script - Environment Variables Setup Guide

This guide explains how to set up the required environment variables (GitHub Secrets) for the Laravel deployment GitHub Actions workflow.

Overview

The deployment script uses GitHub Secrets to securely store sensitive information like SSH keys and server details. These secrets are referenced in the workflow using the ${{ secrets.SECRET_NAME }} syntax.

Required Secrets

@alphaolomi
alphaolomi / pint.json
Created January 17, 2023 13:46 — forked from JustSteveKing/pint.json
Laravel Pint configuration
{
"preset": "psr12",
"rules": {
"align_multiline_comment": true,
"array_indentation": true,
"array_syntax": true,
"blank_line_after_namespace": true,
"blank_line_after_opening_tag": true,
"combine_consecutive_issets": true,
"combine_consecutive_unsets": true,

Github Labels Guide

1 Guide Assumptions

This guide is created to make work with labels on Github more constructive and understandable both to development and management parts of the team.

Here's the base sanitizer:

<?php

namespace FooProject\Internal\Sanitizers;

abstract class BaseSanitizer
{
    /**
@alphaolomi
alphaolomi / remove_laravel_comments.php
Created June 16, 2022 22:41 — forked from jakebathman/remove_laravel_comments.php
Remove comments from fresh Laravel files
<?php
/*
|--------------------------------------------------------------------------
| Remove Laravel Comments
|--------------------------------------------------------------------------
|
| Just made a new Laravel project, but don't want all those big
| comment blocks? Put this in the root of your project and run
| "php remove_laravel_comments.php"
|
@alphaolomi
alphaolomi / setting_up_laravel_app.md
Last active October 6, 2019 18:11
How to clone and set up a laravel app

Setting up a Laravel

Using a git repository

  • Step 1: Clone repository

    git clone https://....
  • Step 2: Install required dependecies