Skip to content

Instantly share code, notes, and snippets.

upstream batata{
server 127.0.0.1:8000;
}
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
server {
listen 80;
server_name 159.203.86.164;
from pycallgraph import PyCallGraph
from pycallgraph.output import GraphvizOutput
from pycallgraph import Config
with PyCallGraph(output=GraphvizOutput(), config=Config(max_depth=5)):
pass
"hits" : [
{
"_index" : "animal",
"_type" : "animal",
"_id" : "6d7a9391-9e7f-47e9-ad46-4d6fe85bba7d",
"_score" : 1.0,
"_source" : {
"scope" : {
"farm_id" : "7c60dea5-1d80-4997-87e5-a78a262229fd",
"holding_id" : "af13a51c-a1c6-4596-afd8-a15fbe54fe40"
@csarcom
csarcom / a.py
Created September 6, 2019 18:04
class AnimalDoc(Document):
_id = Text()
class Index:
name = 'animal'
# Object type definition