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 / install-toolbox.sh
Last active April 27, 2021 03:52 — forked from greeflas/install-toolbox.sh
JetBrains Toolbox installation script for Ubuntu - https://www.jetbrains.com/toolbox/app/
#!/bin/bash
#TODO: check user is NOT root or sudo
set -e
if [ -d ~/.local/share/JetBrains/Toolbox ]; then
echo "It appears that JetBrains Toolbox is already installed! Starting..."
if [ ! -e /usr/local/bin/jetbrains-toolbox ]; then
sudo ln -s ~/.local/share/JetBrains/Toolbox/bin/jetbrains-toolbox /usr/local/bin/jetbrains-toolbox
@LoganGray
LoganGray / mysql-drop-all-tables.sh
Created July 24, 2018 21:32 — forked from cweinberger/mysql-drop-all-tables.sh
drops all tables of a specific db
#!/bin/bash
#usage: mysql-drop-all-tables -d database -u dbuser -p dbpass
TEMP_FILE_PATH='./drop_all_tables.sql'
while getopts d:u:p: option
do
case "${option}"
in
@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\] ";