Skip to content

Instantly share code, notes, and snippets.

View joy4eg's full-sized avatar

Yaroslav joy4eg

View GitHub Profile
@joy4eg
joy4eg / crash.log
Last active July 15, 2025 10:28
postgres crash 17.5
2025-07-15 10:25:08.151 UTC [1] LOG: server process (PID 73) was terminated by signal 11: Segmentation fault
2025-07-15 10:25:08.151 UTC [1] DETAIL: Failed process was running:
WITH replaced AS (
DELETE FROM replaceable_events_before_update
WHERE
replaced_by_id = ANY($1)
RETURNING kind,created_at,id,address,pubkey,master_pubkey,gift_receiver_pubkey,sig,sig_alg,key_alg,content,tags,t_tags,d_tag,h_tag,deleted,has_images,has_videos,is_reply,is_root_reply,is_quote,has_references,hidden,lookup,expiration,replaced_by_id), source_data (kind,created_at,id,address,pubkey,master_pubkey,gift_receiver_pubkey,sig,sig_alg,key_alg,content,tags,t_tags,d_tag,h_tag,deleted,has_images,has_videos,is_reply,is_root_reply,is_quote,has_references,hidden,lookup,expiration,replaced_by_id) AS (SELECT * from replaced UNION ALL VALUES (cast($2 as integer), cast($3 as bigint), $4, $5, $6, $7, $8, $9, $10, $11, $12, cast($13 as jsonb), cast($14 as text[]), $
@joy4eg
joy4eg / 999-efibootmgr.install
Last active August 13, 2024 09:53
Fedora UKI setup (without grub2, systemd-boot)
#!/bin/sh
set -xe
COMMAND="${1:?}"
KERNEL_VERSION="${2:?}"
# shellcheck disable=SC2034
ENTRY_DIR_ABS="$3"
KERNEL_IMAGE="$4"