Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View acacha's full-sized avatar

Sergi Tur Badenas acacha

View GitHub Profile
acacha / wait.js
Created November 15, 2017 17:57 — forked from ericelliott/wait.js
Wait -- an ES6 promise example
const wait = time => new Promise((resolve) => setTimeout(resolve, time));
wait(3000).then(() => console.log('Hello!')); // 'Hello!'
acacha /
Last active March 3, 2022 17:44 — forked from BenSampo/
Laravel deploy script
# Change to the project directory
# Turn on maintenance mode
if [ -f artisan ]; then
$FORGE_PHP artisan down || true
# Pull the latest changes from the git repository
git reset --hard origin/production