Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
Method of populating data into TimescaleDB where Prometheus doesn't directly scrape the metrics.
This can be used in cases where a user needs to backfill metrics which are only generated every few hours or at the end of every day.
Create the cpu_total metric table, or in other words, create the actual "cpu_total" series
package main | |
/* | |
// Example | |
sci := ServerConnInfo{ | |
"127.0.0.1", | |
"22", | |
"ubuntu", | |
`key.pem`, | |
} |
package Village | |
type Acceptor struct { | |
Name string | |
preferences map[*Proposer]int | |
Free bool | |
partner *Proposer | |
proposalPool []*Proposer | |
} |
function filereport() { | |
if [ "$1" != "run" ]; then | |
echo "Notice Dry-run mode" | |
MODE="dryrun" | |
else | |
MODE="run" | |
fi | |
package main | |
import ( | |
"errors" | |
"fmt" | |
"time" | |
) | |
type HostError struct { | |
message string |
import json, argparse, sys, os, time | |
from os.path import basename | |
def getFileContents(filename): | |
with open(filename, 'r') as f: | |
return f.read() | |
def writeToFile(filename, contents): | |
file = open(filename, "w") |
import json, argparse, sys, os, time | |
from os.path import basename | |
def getFileContents(filename): | |
with open(filename, 'r') as f: | |
return f.read() | |
def writeToFile(filename, contents): | |
file = open(filename, "w") |
package main | |
// Run at https://play.golang.org/p/QDc3-94kqJ | |
import ( | |
"fmt" | |
"reflect" | |
) | |
type Event interface { |
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition: