Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Qumber Rizvi qumberrizvi

🎯
Focusing
View GitHub Profile
@qumberrizvi
qumberrizvi / bitbucket-pipelines.yml
Last active May 26, 2023 07:44
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.
View bitbucket-pipelines.yml
# 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
@qumberrizvi
qumberrizvi / Handler.php
Last active July 14, 2020 06:28
Log events / exceptions to CloudWatch and local filesystem in your Laravel / Lumen app.
View Handler.php
<?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;