Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jasonmccallister's full-sized avatar

Jason McCallister jasonmccallister

View GitHub Profile
#!/usr/bin/env bash
echo ">>> Starting Install Script"
# Update
sudo apt-get update
# Install MySQL without prompt
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'
@jasonmccallister
jasonmccallister / ngxhost.sh
Last active August 29, 2015 13:57 — forked from fideloper/ngxhost.sh
My custom ngxhost.sh for vagrant. Forked from https://gist.github.com/fideloper/9063376
#!/usr/bin/env bash
if [ $EUID -ne 0 ]; then
echo "You must be root: \"sudo ngxvhost\""
exit 1
fi
# May need to run this as sudo!
# I have it in /usr/local/bin and run command 'ngxvhost' from anywhere, using sudo.

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname