Skip to content

Instantly share code, notes, and snippets.

View olantobi's full-sized avatar
🏠
Working from home

Tobi Olanrewaju olantobi

🏠
Working from home
  • Lagos, Nigeria
  • 20:58 (UTC +01:00)
View GitHub Profile

HOW TO UPLOAD FILES IN MEMPRO.

Three file types available for upload

  • business_logo (for the business)
  • profile_picture (for the app users)
  • member_picture (for members added to a business)

STEPS TO UPLOAD A FILE FROM THE CLIENT

Send request to generate presigned url

@olantobi
olantobi / apache.sh
Created June 2, 2022 10:24
Script to Auto Create/Configure Apache Server with PHPInfo Page
#!/bin/bash
sudo yum update -y
sudo amazon-linux-extras install -y lamp-mariadb10.2-php7.2 php7.2
sudo yum install -y httpd mariadb-server
sudo systemctl start httpd
sudo systemctl enable httpd
sudo chkconfig httpd on
# Set file permissions for the Apache web server
sudo groupadd www
sudo usermod -a -G www ec2-user
namespace App\Http\Middleware;
use Illuminate\Support\Facades\Log;
class LogAfterRequest {
public function handle($request, \Closure $next)
{
return $next($request);
}
@olantobi
olantobi / create_laravel_app.sh
Created April 19, 2019 23:37 — forked from connor11528/create_laravel_app.sh
Create a new Laravel application
#!/bin/bash
laravel new $1
cd $1
composer install
yarn install
touch README.md
cp .env.example .env
git init
git add -A