Skip to content

Instantly share code, notes, and snippets.

View tobz's full-sized avatar
💁‍♂️
it me

Toby Lawrence tobz

💁‍♂️
it me
View GitHub Profile
2026-07-31 10:26:38 EDT | CORE | DEBUG | (comp/forwarder/eventplatform/impl/epforwarder.go:265 in Stop) | event platform forwarder shut down complete
2026-07-31 10:26:38 EDT | CORE | DEBUG | (pkg/util/fxutil/logging/logging.go:65 in Write) | [Fx] HOOK OnStop github.com/DataDog/datadog-agent/comp/forwarder/eventplatform/impl.newEventPlatformForwarder.func2() called by github.com/DataDog/datadog-agent/pkg/util/fxutil.(*fxLifecycleAdapter).Append ran successfully in 321.584µs
2026-07-31 10:26:38 EDT | CORE | DEBUG | (pkg/util/fxutil/logging/logging.go:65 in Write) | [Fx] HOOK OnStop github.com/DataDog/datadog-agent/comp/core/autodiscovery/impl.newAutoConfig.func3() executing (caller: github.com/DataDog/datadog-agent/pkg/util/fxutil.(*fxLifecycleAdapter).Append)
2026-07-31 10:26:43 EDT | CORE | DEBUG | (pkg/collector/corechecks/net/ntp/ntp.go:287 in func1) | Error querying ntp host 1.datadog.pool.ntp.org: read udp 192.168.1.64:53797->185.234.20.134:123: i/o timeout
2026-07-31 10:26:43 EDT | CORE | ERROR | (pkg/
syntax = "proto3";
package datadog.agent;
service AgentSecure {
rpc ReportRemoteAgentEvent(ReportRemoteAgentEventRequest) returns (ReportRemoteAgentEventResponse);
}
message Event {
ErrorType type = 1; // always set; either a simple or complex event
@tobz
tobz / deser.rs
Last active December 4, 2025 15:06
use std::{marker::PhantomData, u8};
use facet::{
EnumType, Facet, Field, NumericType, PointerType, PrimitiveType, SequenceType, Shape, ShapeLayout, StructType,
TextualType, Type, UserType,
};
use facet_reflect::Partial;
use facet_value::{DestructuredRef, Value};
use saluki_error::{generic_error, ErrorContext, GenericError};
#![allow(dead_code)]
use std::ops::Range;
use bytes::{buf::UninitSlice, Buf, BufMut};
use tracing::trace;
use crate::deser::framing::FramingError;
/// An I/O buffer.
#![allow(dead_code)]
use std::collections::{
hash_map::{Iter, IterMut},
HashMap,
};
use saluki_error::GenericError;
// A raw span.
use std::{mem::ManuallyDrop, ops::Deref, slice::from_raw_parts, str::from_utf8_unchecked};
use crate::interning::InternedString;
const OWNED_PTR_TAG: usize = 0xFF00_0000_0000_0000;
#[repr(C)]
#[derive(Clone, Copy)]
struct OwnedUnion {
cap: usize, // Field one.
loom::model(|| {
// These lines are purely to set up the necessary data structures:
let interner = FixedSizeInterner::new(NonZeroUsize::new(1024).unwrap());
let t1_interned_s = interner.try_intern(STRING_TO_INTERN).expect("should not fail to intern");
assert_eq!(t1_interned_s.deref(), STRING_TO_INTERN);
// Now we spawn our second thread, meant to run concurrently with our "first" thread, which is the code
// that comes _after_ the call to `loom::thread::spawn`:
let t2_result = loom::thread::spawn(move || {
interner.try_intern(STRING_TO_INTERN).expect("should not fail to intern")
/// Atomic smart pointer that supports replacing itself.
///
/// ## Metric handles and expiration
///
/// In metric handles, we have to deal with the potential that a registry expires a metric, which
/// could otherwise leave a handle attached to a metric that is reported nowhere. In order to handle
/// this, we need the ability to be able to reset/update the internal field that holds the smart
/// pointer reference to the inner data, which requires a mechanism for interior mutability given
/// the immutable references by which handles are accessed through.
///
[package]
name = "quanta-stdlib-deviation"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
quanta = "0.12.1"
hdrhistogram = "7.5.4"
#!/usr/bin/env sh
set -euo pipefail
ACME_SH_HOME="/data/acme.sh"
ACME_SERVER="https://acme.zerossl.com/v2/DV90"
contains() {
if [ "$1" ] && [ "$2" ] && [ -z "${1##*"$2"*}" ];
then