Skip to content

Instantly share code, notes, and snippets.

View alejandromunoz-es's full-sized avatar

Alejandro Muñoz Fernández alejandromunoz-es

View GitHub Profile
@namazso
namazso / wg-nm-firewalld.md
Last active October 10, 2025 17:15
Wireguard VPN with NetworkManager and firewalld

WireGuard VPN setup with NetworkManager and firewalld

Prerequisites

This guide uses NetworkManager and firewalld. Both of these are installed and used by default on current versions of Red Hat Enterprise Linux and Fedora.

First, test that NetworkManager is in use:

# nmcli
@antonkratz
antonkratz / redact.md
Last active June 21, 2025 10:25
readact, flatten, PDF, Ubuntu

There is a sensitive document. Credit card statements. Reimbursement.

I want to redact (hide) parts of the document.

  1. Create a pitch black highlighter pen in Okular. Highlight the relevant text in black.
  2. The text is still there and can easily be seen, for example by highlighting (in the sense of Ctrl-A) the entire document.
  3. To flatten = actually remove the text beneath the black highlights:

pdf2ps in.pdf - | ps2pdf - out.pdf

[x] Setup environment for wireguard

STEPS:

  1. Organize zones
  2. Forward wireguard traffic (tunnel unrecognized (0.0.0.0/0) traffic to your default gateway)
  3. Masquerade forwarding traffic (do snat for outgoing and dnat for incoming traffic)

1. Organize Zones

@probonopd
probonopd / Wayland.md
Last active December 13, 2025 11:28
Think twice about Wayland. It breaks everything!

Think twice before abandoning X11. Wayland breaks everything!

Wayland breaks everything! It is binary incompatible, provides no clear transition path with 1:1 replacements for everything in X11, and is even philosophically incompatible with X11. Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.

Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating everyone else (e.g., people using just an X11 window manager or something like GNUstep) in the process.

Feature comparison