Skip to content

Instantly share code, notes, and snippets.

View yannick's full-sized avatar
🏗️

Yannick Koechlin yannick

🏗️
View GitHub Profile
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
This file has been truncated, but you can view the full file.
2391 ##linux Channel website: https://freenode.linux.community | Pastebin: https://paste.linux.community | Need an op? Join ##linux-ops | CoC? ##linux-offtopic, please.
1931 #python Don't paste, use https://paste.pound-python.org/ | http://bit.ly/psf-coc | Tutorial: http://bit.ly/MCAhYx | New programmer? http://bit.ly/23X7emF | Specify 2.x or 3.x in your question | Find your local User Group: http://goo.gl/S1Zsq | #python-fr #python.de #python-es #python.tw #python-br #python-nl #python-ir #python.it #python-ro #python-india #python-hu #python-dk #python-dev
1926 #freenode Welcome to #freenode | Feel free to message staff at any time. You can find us using /stats p (shows immediately-available staff) or /who freenode/staff/* (shows all staff) | See https://freenode.net/news/spambot-attack regarding spam | User mode +R blocks unregistered user PMs
1787 #python PSF Survey: https://bit.ly/psf-survey-2018 | Anything about Python is on-topic. Don't paste, use https://paste.pound-python.org/ | Be nice: https://j.mp
@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
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
z
y
xx
x2401
x
w
unbekannt
talstation15
t
reservoir
#!/bin/bash
kill -USR2 `cat tmp/pids/unicorn.pid`