Set up a self-maintaining, compounding knowledge graph that evolves automatically.
Layer 1: Knowledge Graph (life/areas/)
└── Entities with atomic facts + living summaries
| package invoicing | |
| import ( | |
| "bytes" | |
| "context" | |
| "encoding/json" | |
| "fmt" | |
| "io" | |
| "mime/multipart" | |
| "net/http" |
| package github | |
| import ( | |
| "archive/tar" | |
| "compress/gzip" | |
| "context" | |
| "fmt" | |
| "io" | |
| "net/http" | |
| "os" |
Create new filters and create new labels.
from:(notifications@github.com) AND {"Patch Links" "approved this pull request." "requested changes on this pull request." "commented on this pull request." "pushed 1 commit." "pushed 2 commits." "pushed 3 commits."}
label: gh-pull-request
| #!/bin/bash | |
| # | |
| # Usage: | |
| # ./docker_logs.sh $(docker ps -q) | |
| while [ $# -ne 0 ] | |
| do | |
| (docker logs -f -t --tail=10 $1|sed -e "s/^/$1: /")& | |
| shift | |
| done |
| package safebuffer | |
| import ( | |
| "bytes" | |
| "sync" | |
| ) | |
| // Buffer is a goroutine safe bytes.Buffer | |
| type Buffer struct { | |
| buffer bytes.Buffer |
| // Dashboard represents a Datadog Dashboard. | |
| type Dashboard struct { | |
| ID int64 `json:"id"` | |
| ReadOnly bool `json:"read_only"` | |
| Description string `json:"description"` | |
| Title string `json:"title"` | |
| Graphs []struct { | |
| Definition struct { | |
| Viz string `json:"viz"` | |
| Requests []struct { |
| // A small SSH daemon providing bash sessions | |
| // | |
| // Server: | |
| // cd my/new/dir/ | |
| // #generate server keypair | |
| // ssh-keygen -t rsa | |
| // go get -v . | |
| // go run sshd.go | |
| // | |
| // Client: |
| version: "2" | |
| services: | |
| zk: | |
| image: bobrik/zookeeper | |
| network_mode: host | |
| environment: | |
| ZK_CONFIG: tickTime=2000,initLimit=10,syncLimit=5,maxClientCnxns=128,forceSync=no,clientPort=2181 | |
| ZK_ID: 1 |
| FROM datadog/docker-dd-agent:latest | |
| RUN rm /etc/dd-agent/conf.d/haproxy.yaml.example | |
| ADD conf.d/haproxy.yaml /etc/dd-agent/conf.d/haproxy.yaml | |
| RUN sed -i -e"s/^.*histogram_percentiles:.*$/histogram_percentiles: 0.50, 0.75, 0.95, 0.99/" /etc/dd-agent/datadog.conf | |
| RUN sed -i -e"s/^.*histogram_aggregates:.*$/histogram_aggregates: max, median, avg, count/" /etc/dd-agent/datadog.conf |