Skip to content

Instantly share code, notes, and snippets.

Avatar

Jason McCallister jasonmccallister

View GitHub Profile
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@jasonmccallister
jasonmccallister / ngxhost.sh
Last active Aug 29, 2015 — forked from fideloper/ngxhost.sh
My custom ngxhost.sh for vagrant. Forked from https://gist.github.com/fideloper/9063376
View ngxhost.sh
#!/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.
View install.sh
#!/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'
You can’t perform that action at this time.