I hereby claim:
- I am mhazy on github.
- I am mhazy (https://keybase.io/mhazy) on keybase.
- I have a public key ASDfCzPeHMkLWvlRaYxrZmfFnsPA24TagH1mF0jEvP8SSgo
To claim this, I am signing this object:
| import http from 'node:http'; | |
| // `curl -iN http://localhost:8080` | |
| function sleep() { | |
| return new Promise((resolve) => { | |
| setTimeout(() => resolve(), 1000) | |
| }); | |
| } |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/sh | |
| # Environment | |
| export ALDO_ENV="test" | |
| export NODE_ENV="test" | |
| # Containers, etc. | |
| CONTAINERS_TOTAL=${CIRCLE_NODE_TOTAL:-"1"} | |
| CONTAINERS_INDEX=${CIRCLE_NODE_INDEX:-"1"} |
| # make sure awscli is installed | |
| pip install awscli | |
| # build | |
| grunt build-staging | |
| # Clear staging path on s3 | |
| aws s3 rm s3://[BUCKET NAME]/[DIRECTORY] --recursive | |
| # Sync the dist folder | |
| aws s3 sync ./dist s3://[BUCKET NAME]/[DIRECTORY] --acl public-read --cache-control "public, max-age=86400" | |
| # Update index.html to have a 60sec cache | |
| aws s3api copy-object --copy-source [BUCKET NAME]/[FILEPATH] --cache-control "public, max-age=60" --content-type "text/html" --bucket [BUCKET NAME] --key [FILEPATH] --metadata-directive="REPLACE" |
| function toolbar_test_toolbar() { | |
| $items = []; | |
| $items['scribe_posts'] = array( | |
| '#type' => 'toolbar_item', | |
| 'tab' => array( | |
| '#type' => 'link', | |
| '#title' => t('Posts'), | |
| '#url' => Url::fromUri('http://www.google.com'), | |
| '#attributes' => array( |