Set up a self-maintaining, compounding knowledge graph that evolves automatically.
Layer 1: Knowledge Graph (life/areas/)
└── Entities with atomic facts + living summaries
| #! /bin/bash | |
| echo Backing up the original file just in case ... | |
| cp /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js "/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js.backup-$(date +'%d-%m-%Y-%H-%M-%S')" | |
| echo Patching ... | |
| sed -i.bak "s/.data.status.toLowerCase() !== 'active'/.data.status.toLowerCase() === 'active'/" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js | |
| # Restart PVE Web | |
| if [[ $(systemctl is-active pveproxy.service) = 'active' ]] | |
| then |
| 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 |