PhpStorm adds comment slashes at the start of lines, causing formatting issues when using tools that align code. This can lead to extra formatting commits in systems like GitHub Actions.
Author: chrysanthos
How to fix S3 error “The bucket does not allow ACLs” in Laravel
Since April 5th, 2023, AWS announced that by default all new buckets will apply two new security best practices. Here’s what changed and how to fix it.
Find out why your disk is full (Linux)
Install this NCurses Disk Usage (ncdu), an open source project that is gonna make your life easier. Then just run the command with the directory you’d like to scan and wait a few seconds. You will get a nice interactive report with all directories and their corresponding size.
Zero Downtime Deployments with Laravel Forge (free edition)
This tutorial demonstrates how anyone can implement zero-downtime deployments when using Forge without using Laravel Envoyer. To do that we will use Laravel Envoy, a tool that helps setup tasks during deployment using Blade syntax.
How to update your self-hosted Sentry installation
If you followed my Sentry installation guide, you probably wonder to get it updated to the latest version. Well, I am wondering the same once a month so here we go.
ESLint: Disable formatting in part of the code
There will be cases where you will need to disable formatting in part of a code. Here’s how..
How to download a folder from AWS S3
At some point, I needed to download a folder from AWS S3 only to realize that there is no such feature built on their UI. Thankfully, there is a way to download any directory through their CLI. To do that, follow these steps:
Don’t ever use Promise.all()
Imagine that you have two asynchronous calls like so: While the code above will get the job done, you are missing a major opportunity for huge performance gains. These two API calls are run sequentially, meaning that for “fetchCategories” to run, we will wait until “fetchUsers” is completed. The obvious change here will be to […]
🔑 SMS OTP Verification for Laravel
In some occasions you may need to add OTP verification for your logged-in dashboard. Various ways exist for OTP verification (like Laravel Jetstream/Fortify) which will require your end user to have a separate mobile app for this. In my situation, I had the need to send the OTP codes via SMS. To solve this need, […]
Step by Step Self hosted Sentry Installation
Prerequisites Docker 19.03.6+ Docker Compose 1.28.0+ 4 CPU Cores 8 GB RAM 20 GB Free Disk Space Installing Sentry First step you need to do is clone the repository from github. Cloning it will allow you to pull updates at a later stage. Before running the command make sure you cd into the directory you […]