Skip to content

Instantly share code, notes, and snippets.

View qumberrizvi's full-sized avatar
🎯
Focusing

Qumber Rizvi qumberrizvi

🎯
Focusing
View GitHub Profile
@qumberrizvi
qumberrizvi / Handler.php
Last active July 14, 2020 06:28
Log events / exceptions to CloudWatch and local filesystem in your Laravel / Lumen app.
<?php
//File location: App\Exceptions\
namespace App\Exceptions;
use Exception;
use Illuminate\Auth\Access\AuthorizationException;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Validation\ValidationException;
use Laravel\Lumen\Exceptions\Handler as ExceptionHandler;
@qumberrizvi
qumberrizvi / bitbucket-pipelines.yml
Last active September 11, 2023 06:30
Bitbucket Pipelines CI/CD: SSH into a server to git pull without conflict. Avoid failure when auto merge tries to open editor for commit message.
# This is a sample build configuration for PHP.
# Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: php:7.1.29
pipelines:
default:
- step:
name: Deploy to dev