Skip to content

Instantly share code, notes, and snippets.

View mmuhd's full-sized avatar
🎯
Focusing

Muazu Musa Muhammad mmuhd

🎯
Focusing
View GitHub Profile
@mmuhd
mmuhd / sublime-text-3-windows-shortcuts.md
Last active December 21, 2020 18:10 — forked from mrliptontea/sublime-text-3-windows-shortcuts.md
Sublime Text 3 - Useful Shortcuts (Windows)

Sublime Text 3 - Useful Shortcuts (Windows)

General

Shortcut Description
Ctrl+Shift+P command prompt
Ctrl+Alt+P switch project
Ctrl+P go to file
Ctrl+G go to line
php artisan make:model Todo -mcr
@mmuhd
mmuhd / reduce-example.js
Created April 17, 2019 07:44 — forked from benwells/reduce-example.js
Using Array.reduce to sum a property in an array of objects
var accounts = [
{ name: 'James Brown', msgCount: 123 },
{ name: 'Stevie Wonder', msgCount: 22 },
{ name: 'Sly Stone', msgCount: 16 },
{ name: 'Otis Redding', msgCount: 300 } // Otis has the most messages
];
// get sum of msgCount prop across all objects in array
var msgTotal = accounts.reduce(function(prev, cur) {
return prev + cur.msgCount;
@mmuhd
mmuhd / lamp-aws-laravel.md
Last active March 4, 2021 11:18 — forked from intelligenced/lamp-aws-laravel.md
Instructions for setting up LAMP on AWS Ubuntu & Setup for Laravel

Setting up LAMP (Ubuntu, Apache2, MySQL, PHP 7.0) using AWS

  • Set EC2 Instance, Download Key-Value Pair (.pem)

  • Get Putty Compatible Key ppk, using PUTTygen by loading .pem key without adding parameters

  • Enter user@public-dns as server and Add SSH Key to Auth in Settings

  • Update Apt-Get Packages

@mmuhd
mmuhd / deploy_laravel_app_on_ec2_ubuntu1604_apache
Created February 11, 2019 18:45
Deploy Laravel App on AWS EC2 on Ubuntu 16.04 using Apache2, PHP, MySQL, PHPMyAdmin and Laravel
sudo su
sudo apt-get install update
apt-get install apache2
apt-get install php
apt-get install libapache2-mod-php
apt-get install mysql-server
apt-get install php-mysql
apt-get install libapache2-mod-auth-mysql
apt-get install phpmyadmin
@mmuhd
mmuhd / create_laravel_app.sh
Created December 9, 2018 15:57 — 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