Skip to content

Instantly share code, notes, and snippets.

View benounnas's full-sized avatar
💻
chilling in 127.0.0.1

Benounnas Oussama benounnas

💻
chilling in 127.0.0.1
View GitHub Profile

How to install Laravel globally in Ubuntu

===================================================================

Open your terminal using Ctrl+Alt+T and type the following commands

Step 1: Install Laravel

composer global require "laravel/installer"
@benounnas
benounnas / laravel-deployment-vps.md
Created March 1, 2021 09:50 — forked from mokhosh/laravel-deployment-vps.md
Deploy Laravel to VPS (LEMP, Git, Mail, Redis, SSL, etc.)

Sign in and create git user

  • ssh root@IP
  • adduser git
  • usermod -aG sudo git

Set SSH keys

on local machine

  • ssh-keygen
  • ls ~/.ssh
  • cat ~/.ssh/id_rsa.pub
@benounnas
benounnas / .bash_profile
Created March 7, 2020 16:51 — forked from JeffreyWay/.bash_profile
Laravel aliases
# laravel new-app
alias laravel="git clone -o laravel -b develop https://github.com/laravel/laravel.git"
alias artisan="php artisan"
alias migrate="php artisan migrate"
alias serve="php artisan serve"
alias dump="php artisan dump"
alias t="phpunit"
# Generators Package
##
## How to install mcrypt in php7.2 / php7.3
## Linux / MacOS / OSX
##
## https://lukasmestan.com/install-mcrypt-extension-in-php7-2/
#
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@benounnas
benounnas / colors.json
Last active April 15, 2020 13:15 — forked from jjdelc/crayola.json
Crayola colors in JSON format
[
{
"hex": "#EFDECD",
"name": "Almond",
"rgb": "(239, 222, 205)"
},
{
"hex": "#CD9575",
"name": "Antique Brass",
"rgb": "(205, 149, 117)"