Skip to content

Instantly share code, notes, and snippets.

Documentation

  • https://lavrton.com/javascript-loops-how-to-handle-async-await-6252dd3c795/

Kill localhost server on Mac

  lsof -i :8000
  kill -9 <PID>

You can replace :8000 with the port that you are using

Find php.ini in any OS

 php -i | grep php.ini
@diter14
diter14 / Switch-PHP-version-on-Valet.md
Created July 1, 2019 14:57 — forked from bgarrant/ValetSwitchPHP.md
How to Switch PHP Version in Laravel Valet between PHP 7.1 and PHP 5.6

How to Switch PHP Version in Laravel Valet between PHP 7.1 and PHP 5.6

Valet switch PHP version with these commands

Install PHP 5.6 and switch Valet to PHP 5.6

valet stop
brew unlink php71
brew install php56
brew install php56-mcrypt