Skip to content

Instantly share code, notes, and snippets.

View mjf's full-sized avatar

Matouš Jan Fialka mjf

View GitHub Profile
@mjf
mjf / Linux-ML-refs.md
Last active August 23, 2024 10:58
Linux mailing lists references
@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 / rust.md
Last active March 11, 2024 12:46
Rust Programming Language
@mjf
mjf / tmux.conf
Last active October 12, 2023 13:11
tmux(1) synchronize panes toggling
set -g status-style 'bg=green fg=black'
set -g status-position top
set -g message-style 'bg=yellow fg=black'
set -g pane-border-status bottom
set -g pane-border-style 'bg=black fg=white dim'
set -g pane-active-border-style 'bg=black fg=cyan'
set -g pane-border-format "#{?pane_active,#[reverse],#[default]} #{pane_title} (#{pane_index}) "
@mjf
mjf / Blogs.md
Last active December 3, 2024 07:14
BLOGS
@mjf
mjf / wmdm.md
Created September 5, 2023 11:49
What Metrices Do Measure? (Kinds of Metrices)

What Metrices Do Measure? (Kinds of Metrices)

Table 1:

Kind Time Label Value Measures
Zero nothing
First how
First what
Second what & how
@mjf
mjf / rfc-keywords-disclaimer-in-czech-language.md
Last active August 17, 2023 12:48
RFC - Keywords / Klíčová slova (překlad)

English

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD",
"SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174]
when, and only when, they appear in all capitals, as shown here.

The key words MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD,

@mjf
mjf / get-interface-info.md
Created July 14, 2023 06:13
Get interface info
(
  echo -e 'INDEX,NAME,TYPE,KIND,LINK,LINDEX'
  sudo ip -all netns exec ip -details -j -p link show |
  sed '/^netns:/d' |
  jq -n '[inputs] | add' |
  jq -r '.[] | "\(.ifindex),\(.ifname),\(.link_type),\(.linkinfo.info_kind),\(.link),\(.link_index)"' |
  sort -unk1
) |
column -ts,