In your command-line run the following commands:
brew doctorbrew update
| #!/usr/bin/env bash | |
| # Abort sign off on any error | |
| set -e | |
| # Start the benchmark timer | |
| SECONDS=0 | |
| # Repository introspection | |
| OWNER=$(gh repo view --json owner --jq .owner.login) |
| import { useEffect, useState } from 'react' | |
| interface HookResultIdleState { | |
| state: 'idle' | |
| } | |
| interface HookResultLoadingState { | |
| state: 'loading' | |
| } |
| name: promote-dev-cool-package | |
| on: | |
| push: | |
| paths: | |
| - packages/cool-package/** | |
| branches-ignore: | |
| - master | |
| - refs/tags/* |
| // Add any other logic here as needed. | |
| import { CacheableResponsePlugin } from 'workbox-cacheable-response/CacheableResponsePlugin'; | |
| import { CacheFirst } from 'workbox-strategies/CacheFirst'; | |
| import { createHandlerForURL } from 'workbox-precaching/createHandlerForURL'; | |
| import { ExpirationPlugin } from 'workbox-expiration/ExpirationPlugin'; | |
| import { NavigationRoute } from 'workbox-routing/NavigationRoute'; | |
| import { precacheAndRoute } from 'workbox-precaching/precacheAndRoute'; | |
| import { registerRoute } from 'workbox-routing/registerRoute'; |
In your command-line run the following commands:
brew doctorbrew update| machine: | |
| environment: | |
| PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin" | |
| node: | |
| version: 7.10.0 | |
| dependencies: | |
| override: | |
| - yarn | |
| cache_directories: |
| ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
| cat jwtRS256.key | |
| cat jwtRS256.key.pub |
My preferred code style is 2-space K&R. This is intended to provide a justification for this style.
K&R style has the following properties:
Outdated note: the process is a lot easier now: after you brew install postgresql you can initialize or stop the daemon with these commands: brew services start postgresql or brew services stop postgresql.
new out put may look like
To have launchd start postgresql now and restart at login:
brew services start postgresql
Or, if you don't want/need a background service you can just run:
pg_ctl -D /usr/local/var/postgres start