Skip to content

Instantly share code, notes, and snippets.

View c3d's full-sized avatar

Christophe de Dinechin c3d

View GitHub Profile
@c3d
c3d / gist:a0746b3472ae6ec7385a8dbc1f25e4b4
Created March 26, 2024 14:45
Error message for non-supported Genoa prototypes
error: final http request failed: Status(400, Response { status: 400, headers: {"connection": "close", "": "", "content-type": "text/html;charset=ISO-8859-1", "content-length": "25", "set-cookie": "JSESSIONID=7371A4CEC93403189084CA67BAB158E6; Path=/cek; Secure; HttpOnly", "date": "Mon, 26 Sep 2022 10:49:28 GMT"}, body: [13, 10, 13, 10, 13, 10, 52, 48, 48, 13, 10, 45, 13, 10, 66, 97, 100, 32, 82, 101, 113, 117, 101, 115, 116] })
caused by: http request #1 failed: Response { status: 400, headers: {"date": "Mon, 26 Sep 2022 10:49:13 GMT", "connection": "close", "": "", "content-type": "text/html;charset=ISO-8859-1", "set-cookie": "JSESSIONID=7E60AA9FD43C767AAD9927B0C64C006A; Path=/cek; Secure; HttpOnly", "content-length": "25"}, body: [13, 10, 13, 10, 13, 10, 52, 48, 48, 13, 10, 45, 13, 10, 66, 97, 100, 32, 82, 101, 113, 117, 101, 115, 116] }; http request #2 failed: Response { status: 400, headers: {"": "", "content-type": "text/html;charset=ISO-8859-1", "set-cookie": "JSESSIONID=6D3CCC003249CAFF7DD4C0113B88454
@c3d
c3d / gist:cb09a0dc46d456d01cdbc227602efaea
Created October 20, 2022 10:42
agent-tls-ctl example
${agent-tls-ctl} -l trace connect --no-auto-values --bundle-dir "${bundle_dir}" --server-address ”ipaddr://${guest_ip}:${agent_port}" -c "ExecProcess json://{\"container_id\": \"${container_id}\", \"exec_id\": \"${exec_id}\", \"process\":{ \"Terminal\": true, \"User\": { }, \"Args\": [ \"sh\", \"-c\", \"echo test\" ] , \"Env\": [ \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\" , \"HOSTNAME=some-host\" , \"TERM=xterm\" ] , \"Cwd\": \"/\" }}"
@c3d
c3d / CalendarAgent Stack Trace
Created March 13, 2022 13:24
CalendarAgent stack trace
Sampling process 3455 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling CalendarAgent (pid 3455) every 1 millisecond
Process: CalendarAgent [3455]
Path: /System/Library/PrivateFrameworks/CalendarAgent.framework/Executables/CalendarAgent
Load Address: 0x103eb4000
Identifier: CalendarAgent
Version: 8.0 (930.5.1)
Code Type: X86-64
Parent Process: ??? [1]

This is a test of raw formatting

ls -R /
cp /etc/passwd /dev/null

With bash formatting:

#include <iostream>
#include <vector>
#include <deque>
#include <type_traits>
#include <cstdio>
#include <cmath>
// ============================================================================
@c3d
c3d / cluster-start
Created November 26, 2020 17:52
Simple Cluster Start script
#!/bin/bash
MASTERS=shuttle
WORKERS="muse big"
run() {
echo "Sending host $HOST command '$@'"
ssh root@$HOST "$@"
}
@c3d
c3d / gist:e342ace5084c5e11662ee2f7fef33097
Created November 26, 2020 17:50
Kubernetes with swap on Fedora - Raw notes
- Upgraded to 19.4, tried to run on the machines I recently upgraded to Fedora
33. I run into an ongoing issue where /dev/zram0 swap is re-enabled, not sure
what does it yet.
+ kubeadm really does not want to init a system without swap. I know this has
been a topic of recent discussion.
[init] Using Kubernetes version: v1.19.4
[preflight] Running pre-flight checks
error execution phase preflight: [preflight] Some fatal errors occurred:
@c3d
c3d / qemu-mini for RHEL
Created August 7, 2020 13:30
Patch for qemu-mini for RHEL
From 4291945bb7dadc29a4cfb8048e7c36e142bf1cd4 Mon Sep 17 00:00:00 2001
From: "Danilo C. L. de Paula" <ddepaula@redhat.com>
Date: Thu, 30 Jul 2020 14:14:20 -0400
Subject: [PATCH] Initial qemu-mini split
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
---
redhat/qemu-kvm.spec.template | 271 +++++++++++++++++++++-------------
1 file changed, 171 insertions(+), 100 deletions(-)