This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id: bd9ca420-f0ad-11eb-82bc-a1d739a667fe | |
revision: 1 | |
outputs: | |
default: | |
type: elasticsearch | |
hosts: | |
- 'http://localhost:9200' | |
username: admin | |
password: changeme | |
output_permissions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_index": ".ds-metrics-elastic_agent.elastic_agent-default-2021.07.21-000001", | |
"_id": "nX1gynoB54y3ZSSKBgXb", | |
"_score": 1, | |
"_source": { | |
"agent": { | |
"name": "47814b6747ad", | |
"id": "a8072f99-82a2-4c63-b502-177324189638", | |
"ephemeral_id": "5a125964-4a16-41fe-bf97-341af5bc2964", | |
"type": "metricbeat", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"math/rand" | |
"net/http" | |
"net/http/httputil" | |
"net/url" | |
"time" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright The OpenTelemetry Authors | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"net/http" | |
) | |
func main() { | |
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { | |
log.Println("got request") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"net/http" | |
"time" | |
) | |
func main() { | |
// Map to record timings between different paths |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sudo /usr/lib/fwupd/fwupdtool --verbose --plugin-whitelist=uefi get-devices --show-all-devices | |
(fwupdtool:11427): As-DEBUG: 16:01:48.106: run FuEngine:load | |
(fwupdtool:11427): Fu-DEBUG: 16:01:48.106: loading config values from /etc/fwupd/daemon.conf | |
(fwupdtool:11427): Fwupd-DEBUG: 16:01:48.107: looking for os-release at /etc/os-release | |
(fwupdtool:11427): As-DEBUG: 16:01:48.107: run AsStore:load-installed{/usr/share/fwupd/metainfo} | |
(fwupdtool:11427): As-DEBUG: 16:01:48.107: adding existing file: /usr/share/fwupd/metainfo/org.freedesktop.fwupd.remotes.lvfs-testing.metainfo.xml | |
(fwupdtool:11427): As-DEBUG: 16:01:48.107: adding existing file: /usr/share/fwupd/metainfo/org.freedesktop.fwupd.remotes.lvfs.metainfo.xml | |
(fwupdtool:11427): As-DEBUG: 16:01:48.109: Emitting ::changed() [load-installed] | |
(fwupdtool:11427): Fu-DEBUG: 16:01:48.109: using config path of /etc/fwupd | |
(fwupdtool:11427): Fu-DEBUG: 16:01:48.109: loading config from /etc/fwupd/remotes.d/lvfs.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Modeled on | |
// https://github.com/hashicorp/memberlist/blob/0b981/state.go#L478-L501 | |
package main | |
import ( | |
"fmt" | |
"math" | |
"math/rand" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "rust_learning" | |
version = "0.1.0" | |
authors = ["Stuart Nelson <stuartnelson3@gmail.com>"] | |
[dependencies] | |
prometheus = "0.2" |
NewerOlder