pmset -g
sudo pmset -b tcpkeepalive 0
Server Username = craig Server IP = 100.200.300.400
scp /local/file/path/filename.txt [email protected]:/remote/server/file/path
# Shell | |
alias bashp="subl ~/.bash_profile" | |
export PATH="$PATH:$HOME/.composer/vendor/bin" | |
# Transversing | |
alias ..="cd .." | |
alias ...="cd ../.." |
The Laravel Homestead virtual machine provides the ideal server configuration for a Laravel project.
With the Homestead repo https://github.com/laravel/homestead we can configure our Laravel (and non Laravel) projects.
Homestead is setup in the ~/
directory.
To run vagrant commands globally add this function to .bash_profile
.
Having read a number of guides on using SSL with MAMP I still couldn't get things working properly. This is my guide which takes ideas from a number of resources. As with the guides I'd previously read this may or may not work for you but either way I hope it helps.
I imagine you can generate a wildcard certficate for all local sites but this didn't work for me so I generated a certificate for each local site individually. This method uses the subjectAltName field as this is required since Chrome 58.
Create the following file in your user folder and save as server.csr.cnf. Remember to change your Country (C), State (ST), Location (L), Organisation (O), Oganisational Unit (OU), Email Address( emailAddress) and Common Name (CN). For the common name I matched with my local site name as defined in my hosts file.
Last 30 Days | |
%3F_u.dateOption%3Dlast30days%26_u.hasComparison%3Dtrue%26 | |
Last 7 Days | |
%3F_u.dateOption%3Dlast7days%26_u.hasComparison%3Dtrue%26 |
composer global update vendor/package-name | |
or update all global packages | |
composer global update |
bool = ! bool |
/usr/local/bin/composer self-update |