Skip to content

Instantly share code, notes, and snippets.

View marioheber's full-sized avatar
🏠
Working from home

Mário Lopez Filho marioheber

🏠
Working from home
View GitHub Profile
@tsi
tsi / newsite
Last active May 27, 2018 09:39
Bash script to create virtual hosts and prepare your drupal directory.
#!/bin/bash
# This script creates virtual hosts and prepares your mysql DB and drupal directory.
# you should put it under /usr/local/bin/
# and run it with sudo newsite
# Set the path to your localhost
www=/var/www
echo "Enter directory name under $www"
read sn