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 / Grahpical_Design_resources.txt
Created September 6, 2020 19:05
Graphic design resources for SA9SI english community
Color picking websites:
1. https://colorhunt.co
2. https://klart.io
3. https://color.adobe.com
4. https://webkul.github.io
5. https://pigment.shapefactory.co
6. http://bit.ly/2Jam0Vu
7. https://brandcolors.net
8. https://webgradients.com
9. https://colorleap.app/
@benounnas
benounnas / responsive.vue
Created April 17, 2020 14:11
breakpoints programatically in vue
<script>
export default {
data: () => ({
// Create a reactive data property to track
// whether the user is on a mobile device
isMobile: false,
}),
beforeDestroy () {
if (typeof window !== 'undefined') {
@benounnas
benounnas / .eslintrc.js file
Last active April 15, 2020 14:07
Optimizing your Editor
module.exports = {
root: true,
env: {
node: true
},
'extends': [
'plugin:vue/essential',
'plugin:prettier/recommended', // we added this line
'@vue/prettier'
],
@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)"