Skip to content

Instantly share code, notes, and snippets.

View abhishekkhaware's full-sized avatar

Abhishek Khaware abhishekkhaware

  • New Delhi, India
View GitHub Profile
@abhishekkhaware
abhishekkhaware / bootstrap.sh
Last active October 14, 2019 06:20
Install Node JS, Apache, MySQL, PostgreSQL Servers, PHP, Composer, yarn, sublime text and Angular CLI on Ubuntu Desktop
#! /bin/bash
#export DEBIAN_FRONTEND=noninteractive
echo $'\n\e[32mInstalling essentails ...\e[0m\n'
sudo apt-get install -y curl wget vim build-essential software-properties-common apt-transport-https git
echo $'\n\e[32mInstalling Apache, MYSQL, Postgresql Servers and PHP 5.6 and PHP 7.2 ...\e[0m\n'
sudo apt-get update
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
export PATH="~/.composer/vendor/bin:$PATH"
######## Installing MongoDB ##############
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt-get update
sudo apt-get install -y mongodb-org
service mongod start
service mongod status
@abhishekkhaware
abhishekkhaware / gist:7152721
Last active May 4, 2023 16:02
Create An Alias For Laravel and Codecept in Windows PowerShell.
# Laravel Artisan Commands Shortcut
function art($arg1,$arg2,$arg3,$arg4,$arg5) { php artisan $arg1 $arg2 $arg3 $arg4 $arg5}
Set-Alias a art
#### Use as by default Alias #####
# ge:r => generate:resource
# ge:c => generate:controller
@abhishekkhaware
abhishekkhaware / gist:7152497
Last active December 26, 2015 12:39
Create an shortcut or Alias ( like, OSX or linux -> subl ) for Sublime Text 2 or 3 in Windows PowerShell.
# Open Powershell profile
## PS c:\> notepad $profile
# Add Path($PATH= C:\Program Files\Sublime Text 2\) to the System Envairoment Variable for easy access of Sublime_Text.exe
# Create a function for Sublime Text 2 or 3 in $profile
function sublime($arg1){ sublime_text.exe $arg1 }
@abhishekkhaware
abhishekkhaware / gist:7152242
Created October 25, 2013 09:47
Create your profile in Windows Powershell.
// Display the path of Your Profile
PS c:\> $profile // It will echo the path to "Microsoft.PowerShell_profile.ps1"
// But, This file may not actually Exist. Check it by this command:
PS c:\> test-path $profile
// Create If it returns FALSE