Skip to content

Instantly share code, notes, and snippets.

View BenjaminDurham's full-sized avatar

Benjamin Durham BenjaminDurham

View GitHub Profile
@BenjaminDurham
BenjaminDurham / laravelmailsettings.txt
Created June 10, 2016 16:22
Laravel .env Mail settings for app hosted on Linux with GoDaddy workspace email.
.env settings
----------------------------------------------
MAIL_DRIVER=mail
MAIL_HOST=localhost
MAIL_PORT=25
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=null
Other info
@BenjaminDurham
BenjaminDurham / New Homestead Laravel Installation - MAC
Last active September 22, 2016 22:38
Instructions for adding a new Laravel project to a Homestead box.
cd into your Homestead box location and vi homestead.yaml; map your folders, dbs, and domains
sudo vi /etc/hosts; add your VM's IP with a friendly domain name
cd into projcet home directory; composer install, npm install
copy .env.example and adjust settings
cd into Homestead box location and vagrant up or use 'Homestead up' if you have the alias
ssh into Homestead and 'php artisan key:generate'
vagrant provision
@BenjaminDurham
BenjaminDurham / gist:4c6a51ddc581c3afb5e40a6c25a72373
Last active September 27, 2016 19:57
Solving MongoDB "Failed global initialization: UnknownError"
In the terminal/console:
ps aux | grep mongodb
Use the returned process number below:
sudo kill -9 <process number goes here>
Now you can restart MongoDB by entering mongod
@BenjaminDurham
BenjaminDurham / mysqltoxml
Created October 21, 2016 03:04
Dump mysql to xml
mysqldump --xml -t {username} -p {database} > {filename.xml}