select array_to_json(array_agg(row_to_json(t)))
from (
SELECT id, interaction_id, comment_id, created_at, state FROM ugc_permissions
WHERE EXTRACT(MONTH FROM created_at) IN (8,9)
AND EXTRACT(YEAR FROM created_at) = 2017
ORDER BY created_at ASC
) t
brew install [email protected]
brew install postgresql@10
Navigate to https://console.cloud.google.com/apis/credentials
1 - Fill in the name.
2 - Select the organization. i.e "myOrg.io"
brew install wrk
wrk -t12 -c400 -d10s http://localhost:8081/reservations
- 12 is the number of threads we will use.
- 400 the number of concurrent connections
- Docker runs on a Linux kernel
Docker can be confusing to PC and Windows users because many tutorials on that topic assume you're using a Linux machine.
As a Linux user, you learn that Volumes are stored in a part of the host filesystem managed by Docker, and that is /var/lib/docker/volumes
. When you're running Docker on a Windows or Mac OS machine, you will read the same documentation and instructions but feel frustrated as that path don't exist on your system. This simple note is my answer to that.
When you use Docker on a Windows PC, you're typically doing one of these two things:
- Run Linux containers in a full Linux VM (what Docker typically does today)