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
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
acacha / deploy.sh
Last active March 3, 2022 17:44 — forked from BenSampo/deploy.sh
Laravel deploy script
# Change to the project directory
cd $FORGE_SITE_PATH
# Turn on maintenance mode
if [ -f artisan ]; then
$FORGE_PHP artisan down || true
fi
# Pull the latest changes from the git repository
git reset --hard origin/production