Skip to content

Instantly share code, notes, and snippets.

Last active April 18, 2021 20:07
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Linux Install Script - Web Dev
# Directory Aliases
alias code="cd $HOME/Code"
# Laravel Aliases
alias art="php artisan"
alias migrate="php artisan migrate"
alias rollback="php artisan migrate:rollback --step=1"
alias seed="php artisan db:seed"
# NPM Aliases
alias watch="npm run watch"
alias dev="npm run dev"
alias nfresh="rm -rf node_modules/ && npm install"
# Composer Aliases
alias cda="composer dump-autoload -o"
alias cfresh="rm -rf vendor/ && composer -i"
# Vagrant
alias vgs="vagrant global-status"
alias vu="vagrant up"
alias vh="vagrant halt"
alias vssh="vagrant ssh"
alias vrl="vagrant reload"
alias vrebuild="vagrant destroy --force && vagrant up"
# Git Aliases
alias gst="git status"
alias gb="git branch"
alias gl="git log --branches --oneline --decorate --color"
alias glt="git log --branches --oneline --decorate --color --author=\"Nick Davies\" --since=today.midnight"
alias gly="git log --branches --oneline --decorate --color --author=\"Nick Davies\" --since=yesterday.midnight --until=today.midnight"
alias glat="git log --branches --decorate --color --author=\"Nick Davies\" --since=today.midnight"
alias glay="git log --branches --decorate --color --author=\"Nick Davies\" --since=yesterday.midnight --until=today.midnight"
alias gla="git for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) - (%(color:green)%(committerdate:relative)%(color:reset))'"
alias nuke="git clean -df && git reset --hard"
#! /bin/bash
## Update and Upgrade
sudo apt update -y
sudo apt upgrade -y
## Move into Downloads folder before downloading files
cd ~/Downloads
## Install curl
sudo apt install curl -y
## Install PHP 7.4
sudo apt install php7.4-cli -y
## Install PHP dependencies
sudo apt install php7.4-mbstring php7.4-gd php7.4-xml php7.4-zip php7.4-json php7.4-bcmath php7.4-ctype php7.4-tokenizer -y
## Install Composer
curl -sS -o composer-setup.php
HASH=`curl -sS`
echo $HASH
php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
rm composer-setup.php
## Install VirtualBox 6.1.18
curl -O
sudo apt install ./virtualbox-6.1_6.1.18-142142~Ubuntu~eoan_amd64.deb
rm virtualbox-6.1_6.1.18-142142~Ubuntu~eoan_amd64.deb
## Install Vagrant
curl -O
sudo apt install ./vagrant_2.2.14_x86_64.deb -y
rm vagrant_2.2.14_x86_64.deb
## Install NFS Dependencies
sudo apt install nfs-common nfs-kernel-server -y
## Install Ansible
sudo apt install ansible -y
## Install vim
sudo apt install vim -y
## Install Git
sudo apt install git -y
git config --global "XXXX XXXXXX"
git config --global ""
git config --global core.editor "vim"
## Install NVM, Node, NPM
curl -o- | bash
nvm install v14.15.5
## Install libpng-dev
sudo apt install libpng-dev -y
## Install DBeaver Community Edition
sudo apt install ./dbeaver-ce_latest_amd64.deb
rm dbeaver-ce_latest_amd64.deb
## Install Google Chrome
curl -O
sudo apt install ./google-chrome-stable_current_amd64.deb -y
rm google-chrome-stable_current_amd64.deb
## Install PHPStorm
sudo tar xvf PhpStorm-2020.3.3.tar.gz --directory /opt/
## Install Notepadqq
sudo apt install notepadqq -y
## Install Slack
curl -O
sudo apt install ./slack-desktop-4.12.2-amd64.deb
rm slack-desktop-4.12.2-amd64.deb
## Remove unrequired packages
sudo apt autoremove -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment