Skip to content

Instantly share code, notes, and snippets.

View yannick's full-sized avatar
🏗️

Yannick Koechlin yannick

🏗️
View GitHub Profile
package main
import (
"context"
"fmt"
"log"
"github.com/ClickHouse/clickhouse-go/v2"
"github.com/vmihailenco/msgpack/v5"
)
package main
import (
"context"
"fmt"
"log"
"github.com/ClickHouse/clickhouse-go/v2"
"github.com/vmihailenco/msgpack/v5"
)
/dts-v1/;
/plugin/;
/ {
metadata {
title = "Enable hifiberry";
category = "misc";
compatible = "radxa,zero3";
description = "enable hifiberry";
};
#!/usr/bin/zsh
# see https://github.com/ipmitool/ipmitool/issues/30
ipmitool -I lanplus -H 192.168.1.2 -U root -P 'mypw' raw 0x30 0x30 0x01 0x00
ipmitool -I lanplus -H 192.168.1.2 -U root -P 'mypw' raw 0x30 0x30 0x02 0xff 0x05
clickhouse-keeper-0 clickhouse-keeper + clickhouse-keeper --config-file=/etc/clickhouse-keeper/keeper_config.xml --force-recovery
clickhouse-keeper-0 clickhouse-keeper Processing configuration file '/etc/clickhouse-keeper/keeper_config.xml'.
clickhouse-keeper-0 clickhouse-keeper Including configuration file '/tmp/clickhouse-keeper/config.d/generated-keeper-settings.xml'.
clickhouse-keeper-0 clickhouse-keeper Couldn't save preprocessed config to /etc/clickhouse-keeper/keeper_config-preprocessed.xml: File is read-only: /etc/clickhouse-keeper/keeper_config-preprocessed.xml
clickhouse-keeper-0 clickhouse-keeper 2024.02.26 07:42:54.777834 [ 1 ] {} <Warning> KeeperLogStore: Don't have required amount of reserved log records. Need to read from 443665, smallest available log index on disk 528041.
clickhouse-keeper-0 clickhouse-keeper 2024.02.26 07:42:54.807824 [ 1 ] {} <Warning> KeeperServer: This instance is in recovery mode. Until the quorum is restored, no requests should be sent to any of the cluster instances. T
@yannick
yannick / readme.md
Created March 15, 2021 12:23 — forked from darwin/readme.md
APFS Container cloning/replicating under macOS 11.0 (Big Sur) - with a bootable system

It is the year 2020 and replicating APFS containers still sucks. One would expect it would be a simple copy and paste in the Disk Utility app but this is still far from reality.

Last year I wrote how I managed to clone my macOS system under Catalina. The main trick was to create a DMG file with multiple volumes, mount it on target machine and drop to command-line to do asr restore from synthetised disk while avoiding possible pitfalls.

The good news is that Apple devs definitely worked on improving this under Big Sur and added some documentation (see man asr). But I didn't understand it fully on first read. Maybe someone could explain how is this supposed to work?

---
# SSDs for bookie journal storage
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
namespace: pulsar
name: bookie-ssd
provisioner: kubernetes.io/aws-ebs
parameters:
type: gp2
#!/usr/bin/env bash
kubectl patch deployment $1 -p "{\"spec\": {\"template\": {\"metadata\": { \"labels\": { \"redeploy\": \"$(date +%s)\"}}}}}"
kg deployment $1 -o yaml
package main
import (
"bytes"
"compress/gzip"
"fmt"
"io"
"os"
"github.com/aws/aws-sdk-go/aws"
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
1000;1000;Lausanne;Lausanne;VD;100060
1000;1000;Lausanne 1 Dépôt;Lausanne 1 Dépôt;VD;100060
1000;1000;Lausanne 2;Lausanne 2;VD;100200
1000;1000;Lausanne 3;Lausanne 3;VD;100060
1000;1000;Lausanne Ouchy;Lausanne Ouchy;VD;100060
1000;1000;Lausanne 7;Lausanne 7;VD;100060
1000;1000;Lausanne 8;Lausanne 8;VD;100060
1000;1000;Lausanne 12;Lausanne 12;VD;100012
1000;1000;Lausanne 14;Lausanne 14;VD;100014
1000;1000;Lausanne 16;Lausanne 16;VD;100016