Skip to content

Instantly share code, notes, and snippets.

View mjf's full-sized avatar

Matouš Jan Fialka mjf

View GitHub Profile
@mjf
mjf / Postgres.md
Last active April 30, 2024 08:41
Postgres

⚠️ WARNING
The ordering of listed projects or documents is random and has no connection to relevance or maturity levels!

Postgres

Extensions

Extension Description
pgaudit Postgres auditing extension
pg_auto_failover Postgres extension for failover without distributed consensus (by Citus Data)
@mjf
mjf / Blogs.md
Last active April 29, 2024 13:27
Blogs to follow
@mjf
mjf / Postgres blogs.md
Last active April 8, 2024 08:13
Postgres blogs to visit regularly
@mjf
mjf / xfs_stats.grok
Last active March 15, 2024 11:09
Grok Parser for XFS Statistics
# Grok parser for XFS SysFS and ProcFS statistics
# Copyright (C) 2018, 2024 Matous Jan Fialka, <http://mjf.cz/>
# Released under the terms of "The MIT License"
#
# Documentation
# =============
#
# - [runtime statistics](https://xfs.org/index.php/Runtime_Stats)
# ([archived](https://web.archive.org/web/20220902080208/https://xfs.org/index.php/Runtime_Stats))
#
@mjf
mjf / rust.md
Last active March 11, 2024 12:46
Rust Programming Language
@mjf
mjf / userChrome.css
Created February 8, 2024 08:56
Fix Firefox textarea ligature rendering bug
/**
* Get your profile from about:support page.
* Create ~/.mozilla/firefox/<profile>/chrome directory.
* Place to ~/.mozilla/firefox/<profile>/chrome/userContent.css file.
* Run restorecon -R -F ~/.mozilla/firefox/<profile>/chrome on SELinux-enabled distros.
* Set toolkit.legacyUserProfileCustomizations.stylesheets to true in about:config page.
* Restart Firefox and it should be working.
*/
@-moz-document domain("www.example.com") {
@mjf
mjf / qemu_hmp_qmp.inc.sh
Last active February 7, 2024 14:06
KVM/QEMU/LibVirt HMP/QMP shell functions
#! /bin/sh
# KVM/QEMU/LibVirt HMP/QMP shell functions
# Copyright (C) 2024 Matous Jan Fialka, <https://mjf.cz/>
# Released under the terms of the "MIT" license
# Usage: qmp [DOMAIN [COMMAND]]
qmp() {
case "$#" in
@mjf
mjf / llm-generated.md
Created January 17, 2024 13:38
LLM-generated websites and stuff
@mjf
mjf / lockscript
Last active December 11, 2023 16:53
lockscript - Shell script locking template
#! /bin/sh
# lockscript - Shell script locking template
# Copyright (C) 2012-2014 Matous J. Fialka, <http://mjf.cz/>
# Released under the terms of The MIT License
# USAGE
# =====
#
# Rename, link or source this file to your desired script.
@mjf
mjf / haproxy-postgres-binary-checks.cfg
Last active October 24, 2023 15:09
HAProxy TCP Binary Check for Postgres Replica Instance
# HAProxy TCP Binary Check for Postgres Replica Instance
# Copyright (C) "2021" Matous Jan Fialka, <https://mjf.cz/>
# Released under the terms of "The MIT License"
# https://www.postgresql.org/docs/current/protocol-message-formats.html
backend postgres
bind :5432