Skip to content

Instantly share code, notes, and snippets.

View eduardokanema's full-sized avatar

Eduardo Stefani Pacheco eduardokanema

View GitHub Profile
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Bookstore",
"description": "A JSON schema for an online bookstore",
"type": "object",
"properties": {
"storeName": {
"type": "string",
"description": "Name of the bookstore"
### Keybase proof
I hereby claim:
* I am eduardokanema on github.
* I am kanema (https://keybase.io/kanema) on keybase.
* I have a public key ASBfiYgoLKqCKmcduRZf-l6Q_6gdi-AM6LgpyWN8PzpZxAo
To claim this, I am signing this object:
@eduardokanema
eduardokanema / load_test.py
Last active September 16, 2018 16:15
Load test with locust
# pip install locust
# locust -f load_test.py --host=http://localhost:3000/
from locust import HttpLocust, TaskSet, task
import random
class Tasks(TaskSet):
@task
def searsh(self):
self.client.get("/?_=" + str(random.randint(1, 101)))
@eduardokanema
eduardokanema / import.md
Last active September 12, 2018 14:38
GNAF import to postgres
  • Download de countrywide.zip from http://results.openaddresses.io/sources/au/countrywide

  • Extract the countrywide.csv and put on a docker-compose postgres volume.

  • Run the docker-compose up -d and go into the db

docker-compose exec db psql -U %USER% -d %DB%

  • Create the table