Skip to content

Instantly share code, notes, and snippets.

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

Vinoth Kumar vnoitkumar

🏠
Working from home
View GitHub Profile
@vnoitkumar
vnoitkumar / init.bash
Last active July 22, 2020 14:07
Add gitignore in Laravel 5.* Project
# WARNING: You have to clear the git cache somtimes for reflecting the .gitignore in you project
# For that I have cleared the full repo git cache with "git rm -r --cached ."
# If you like you can clear the cache for indujual folder after adding the .gitignore file.
# REFERENCE: Laravel official repo with approriate version
# https://github.com/laravel/laravel/tree/5.5
mkdir -p storage # create logs directory if not exist
cd storage
@vnoitkumar
vnoitkumar / set-up.bash
Last active July 22, 2020 13:07
Laravel
# NOTE: Create .env file and configure with proper credentials appropriate for your environment
ENV=.env
NPM=package.json
COMPOSER=composer.json
if [ ! -f "$ENV" ]; then
cp .env.example .env
fi
man
cd
clear
mkdir
cat
touch
ls
mv
cp
rm
#!/bin/bash
#src: https://gist.github.com/vnoitkumar/cdb31ea6b245e2d7b836c5be607a2030
#Ref: https://marmelab.com/blog/2015/12/17/react-directory-structure.html
read -p "Enter the Module name (eg: UserProfile): " moduleName
if [ -z "$moduleName" ]; then
echo "Module Name required."
exit
fi
{"lastUpload":"2020-05-08T07:45:20.279Z","extensionVersion":"v3.4.3"}
#!/bin/bash
read -p "Enter the app name : " appName
if [ -z "$appName" ]; then
echo "App Name required."
exit
fi
ng new $appName
cd $appName