Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Steve Junior Steve-Junior

🎯
Focusing
View GitHub Profile
@Steve-Junior
Steve-Junior / .php_cs.laravel.php
Last active Dec 20, 2020 — forked from davidhemphill/.php_cs.laravel.php
PHP CS Fixer - Laravel Ruleset
View .php_cs.laravel.php
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$rules = [
'binary_operator_spaces' => [
'operators' => ['=>' => null]
],
'blank_line_after_namespace' => true,
@Steve-Junior
Steve-Junior / S3BackupGuideline.txt
Last active Dec 19, 2020
Backup Database to S3 (Centos)
View S3BackupGuideline.txt
The AWS CLI is a open source command-line tool for managing AWS WebServices from your command-line shell. That means we can create & automate AWS resource management directly from custom scripts. Our script will create a dump of the database and back it up directly on s3 automatically.
This process has been tried and tested on Centos
1. Start by downloading the awscli installer file
# curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
2. Unzip the installer
# unzip awscli-bundle.zip