Skip to content

Instantly share code, notes, and snippets.

@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
@diter14
diter14 / sleep.js
Last active February 20, 2019 14:04 — forked from eteeselink/delay.js
ES7 async/await version of setTimeout
const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));
async function doSomething() {
console.log("this might take some time....");
await sleep(5000);
console.log("done!")
}
doSomething();
@diter14
diter14 / git-flow_windows.md
Last active August 7, 2018 15:26 — forked from geedelur/git-flow_windows.textile
Git Flow Windows Install

Git-Flow Windows Install

  • Instalar Git en Windows

    • Asegurarse de settear: "Checkout as-is, commit Unix-style line endings."
  • Descargar los siguientes paquetes:

    • Paquete getopt
      • Descomprimir y copiar getopt.exe a C:\Program Files (x86)\Git\bin
    • DLL
  • Descomprimir y copiar libintl3.dll a C:\Program Files (x86)\Git\bin