Skip to content

Instantly share code, notes, and snippets.


Sergi Tur Badenas acacha

View GitHub Profile
acacha /
Last active Mar 3, 2022 — 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
acacha / wait.js
Created Nov 15, 2017 — forked from ericelliott/wait.js
Wait -- an ES6 promise example
View wait.js
const wait = time => new Promise((resolve) => setTimeout(resolve, time));
wait(3000).then(() => console.log('Hello!')); // 'Hello!'