Skip to content

Instantly share code, notes, and snippets.

View sharbel93's full-sized avatar
💻
Back to Coding 😎

Sharbel Chris sharbel93

💻
Back to Coding 😎
View GitHub Profile
@sharbel93
sharbel93 / README-Template.md
Created September 8, 2017 05:47 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@sharbel93
sharbel93 / auth.service.ts
Created September 15, 2017 09:33 — forked from codediodeio/auth.service.ts
Angular4 Firebase authentication service using OAuth, Anonymous, and Email/Password. Designed specifically for changes introduced in AngularFire2 4.0.0
import { Injectable } from '@angular/core';
import { AngularFireDatabaseModule, AngularFireDatabase, FirebaseListObservable } from 'angularfire2/database';
import { AngularFireAuth } from 'angularfire2/auth';
import { Router } from "@angular/router";
import * as firebase from 'firebase';
@Injectable()
export class AuthService {
@sharbel93
sharbel93 / git-rebase.markdown
Created October 10, 2017 07:24
Git rebase workflow

Checkout a new working branch

 git checkout -b <branchname>

Make Changes

 git add
 git commit -m "description of changes"

Sync with remote

@sharbel93
sharbel93 / create_laravel_app.sh
Created March 27, 2018 07:18 — 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
# Disable Directory listing
Options -Indexes
# block files which needs to be hidden // in here specify .example extension of the file
<Files ~ "\.(env|json|config.js|md|gitignore|gitattributes|lock)$">
Order allow,deny
Deny from all
</Files>
# in here specify full file name sperator '|'
Option 1
Step1: composer update
Step2: rm -rf node_modules
Step3: npm cache clean
Step4: npm install
Step5: npm run watch
Option 2
Step1: composer update
Step2: rm -rf node_modules
-git clone linktogithubrepo.com/ projectName
-Go to the folder application using cd command on your cmd or terminal
-Run composer install on your cmd or terminal
-Run npm install (
if error encountered in this process,
1). rm -rf node_modules ->2). npm cache clear --force ->3). then npm install
Or
1). npm cache clear --force ->2). then npm install
)
-cp .env.example .env -> Copy .env.example file to .env on the root folder. You can type copy .env.example .env if using command prompt Windows or cp .env.example .env if using terminal, Ubuntu
@sharbel93
sharbel93 / git_new_local_branch.md
Created January 7, 2019 11:31 — forked from nanusdad/git_new_local_branch.md
Git - create new local branch push to GitHub
@sharbel93
sharbel93 / Solution to ZIP uncompress errors when installing or updating dependencies
Last active January 8, 2019 11:23
Solution to ZIP uncompress errors when installing/updating dependencies in laravel composer install
step 1: composer clearcache
step 2: composer global update
@sharbel93
sharbel93 / How to solve this problem of "! [rejected] master -> master (fetch first)"
Created January 19, 2019 10:09
How to solve this problem of "! [rejected] master -> master (fetch first)"
First Do this ...
git fetch origin master
git merge master
Then, do this ...
git fetch origin master:tmp
git rebase tmp
git push origin HEAD:master