Skip to content

Instantly share code, notes, and snippets.

View LoganGray's full-sized avatar
🎯
Focusing

Logan Gray LoganGray

🎯
Focusing
View GitHub Profile
@LoganGray
LoganGray / prep.sh
Last active February 23, 2018 21:07
laravel 5.5 install on vagrant scotch box pro nginx (feb 2018)
composer self-update
sudo chown -R $USER:$USER $HOME/.composer
composer global require "laravel/installer"
composer create-project laravel/laravel proj_name_here "5.5"
echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.bashrc
#need?
sudo dpkg-reconfigure tzdata
@LoganGray
LoganGray / Laravel PHP7 LEMP AWS.md
Last active October 25, 2017 00:06 — forked from santoshachari/Laravel PHP7 LEMP AWS.md
Laravel 5.x on Ubuntu 16.x, PHP 7.x, Nginx 1.9.x

#Steps to install latest Laravel, LEMP on AWS Ubuntu 16.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.

Install PHP 7 on Ubuntu 16

Run the following commands in sequence.

sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip
@LoganGray
LoganGray / profile
Created April 18, 2017 19:06 — forked from dubglan/profile
Fixed colored prompt that works under tmux.
# prompt examples:
# [3 jobs master virtualenv] ~/code/myproject/foo
# [1 job my-branch virtualenv] ~/code/bar/
# [virtualenv] ~/code/
# ~
# Very, very fast, only requiring a couple of fork()s (and no forking at all to determine the current git branch)
if [[ "$USER" == "root" ]]
then
export PS1="\[\e[1;31m\]\u \[\e[1;33m\]\w\[\e[0m\] ";
@LoganGray
LoganGray / grub-loader-elem.sh
Created March 30, 2017 21:52
simple script to make sure grub loader is installed for elementary OS
# make sure add-apt-repository is installed
sudo apt-get install software-properties-common python-software-properties
# actually add the package
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer