Skip to content

Instantly share code, notes, and snippets.

@GithubUser5462
GithubUser5462 / firefox-ffmpeg9-arch-video-playback.md
Created August 9, 2026 00:13
Fixing Firefox H.264/AAC playback issues after the FFmpeg upgrade on Arch Linux using ffmpeg4.4

Firefox video playback broken after FFmpeg 9 on Arch Linux

Date: 2026-08-09
Affected setup: Arch/EndeavourOS, Firefox/Firefox Developer Edition, FFmpeg 9

Symptoms

After Arch upgraded FFmpeg from 8.x to 9.0, Firefox could no longer play some H.264/AAC video streams. Twitch, for example, could fail with:

This video is either unavailable or not supported in this browser. (Error #4000)

@GithubUser5462
GithubUser5462 / jetbrains-markdown-code-block-working-directory.md
Created July 25, 2026 18:58
Restore the pre-2026.2 working directory behavior for runnable Markdown code blocks in JetBrains IDEs.

Restore the old working directory for JetBrains Markdown code blocks

Starting with JetBrains IDEs based on the 2026.2 platform, runnable Markdown code blocks execute from the project root by default.

Previously, commands ran from the directory containing the Markdown file.

This can affect Markdown runbooks that use paths relative to the document:

project/
@GithubUser5462
GithubUser5462 / disable-plasma-login-diacritics-popup.md
Created July 15, 2026 07:12
Disable the “Hold Key for Alternate Characters” Popup in KDE Plasma Login Manager

Disable the “Hold Key for Alternate Characters” Popup in KDE Plasma Login Manager

KDE Plasma can show a popup with accented or alternate characters when a key is held down.

Disabling it in your normal Plasma session does not necessarily disable it on the login screen, because Plasma Login Manager runs under its own system user and has its own configuration directory.

This guide applies to Plasma Login Manager (plasmalogin), not SDDM.

1. Disable the popup in your Plasma session

@GithubUser5462
GithubUser5462 / usb-dock-audio-troubleshooting-linux.md
Created July 7, 2026 06:31
Fixing "no sound" over a USB / USB-C dock or DAC on Linux (PipeWire)

Fixing "no sound" over a USB / USB-C dock or DAC on Linux (PipeWire)

You plugged headphones/speakers into a USB-C dock (or a USB DAC), the device shows up in your sound settings, volume is up... and there's still silence.

This guide walks the full decision tree. The gotcha most guides miss is the last step: a USB DAC can have its own hardware mute switch at the raw ALSA level that your desktop's volume slider never touches.

Tested on Arch/CachyOS with PipeWire + WirePlumber, but the ALSA/PipeWire

@GithubUser5462
GithubUser5462 / floating_page_element_bookmarklet.md
Created June 20, 2026 11:06
Floating Page Element Bookmarklet

Floating Page Element Bookmarklet

javascript:(()=>{const PICK="__float_pick_active__",CSS="__float_pin_css__";if(window[PICK]?.cancel){window[PICK].cancel();return}document.getElementById(CSS)?.remove();const style=document.createElement("style");style.id=CSS;style.textContent=`.__float_pin_panel{position:fixed;top:20px;right:20px;width:520px;height:360px;min-width:220px;min-height:120px;z-index:2147483647;background:#111;color:#fff;border:1px solid #555;box-shadow:0 10px 40px #000b;border-radius:8px;overflow:hidden;display:flex;flex-direction:column}.__float_pin_bar{height:32px;flex:0 0 32px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 8px;cursor:move;background:#222;color:#fff;border-bottom:1px solid #444;font:13px system-ui,sans-serif;user-select:none}.__float_pin_title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}.__float_pin_buttons{display:flex;gap:4px;align-items:center;flex:0 0 auto}.__float_pin_btn{border:0;background:transpa
@GithubUser5462
GithubUser5462 / bcachefs_mount_required_key_not_available.md
Last active November 10, 2025 01:39
Resolving “Required key not available” When Mounting an Encrypted Bcachefs Volume

Resolving “Required key not available” When Mounting an Encrypted Bcachefs Volume

Problem Overview

When mounting an encrypted Bcachefs filesystem (after unlocking it with a passphrase), you may encounter the error:

mount: ... Required key not available  
ERROR - bcachefs::commands::cmd_mount: Fatal error: Required key not available
@GithubUser5462
GithubUser5462 / weston_vnc_remote_desktop_setup_wayland.md
Created June 25, 2025 20:46
Weston VNC Remote Desktop Setup (Wayland)

🖥️ Weston VNC Remote Desktop Setup (Wayland)

✅ Server Setup (Arch-based systems)

Install required packages:

sudo pacman -S --needed weston xorg-server-xwayland libvncserver
@GithubUser5462
GithubUser5462 / headless_remote_access_under_wayland_with_kde_plasma.md
Created June 24, 2025 20:13
Headless Remote Access Under Wayland with KDE Plasma
@GithubUser5462
GithubUser5462 / main.go
Created November 25, 2023 18:20
Golang: Generate an error when a JSON field is present but the corresponding struct field is missing - Disallow Unknown Fields
package main
import (
"bytes"
"encoding/json"
"fmt"
)
type User struct {
Name string `json:"name"`
@GithubUser5462
GithubUser5462 / ReadMe.md
Last active October 10, 2024 21:11
ERROR: unable to configure virtual network port: could not open TUN/TAP device: No such file or directory

ERROR: unable to configure virtual network port: could not open TUN/TAP device: No such file or directory

The error message you are seeing is related to the TUN/TAP device. This device is used to create virtual network interfaces. The error message suggests that the device is not available or not configured correctly.

You can try the following steps to resolve the issue:

1. Kernel module

  • Check if the TUN/TAP device is loaded by running the command lsmod | grep tun
  • If it is not loaded, you can load it by running sudo modprobe tun