Skip to content

Instantly share code, notes, and snippets.

View Tanguy-hthai's full-sized avatar

Tanguy SALMON Tanguy-hthai

View GitHub Profile
@probonopd
probonopd / Wayland.md
Last active August 2, 2025 00:26
Think twice about Wayland. It breaks everything!

Think twice before abandoning X11. Wayland breaks everything!

image

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

@bitonic
bitonic / vectorized-atan2f.cpp
Last active June 24, 2025 04:56
Vectorized & branchless atan2f
// Copyright (c) 2021 Francesco Mazzoli <[email protected]>
//
// Permission to use, copy, modify, and distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
@robbieh
robbieh / bash_banner.sh
Created October 11, 2024 21:08
bash banner
#!/bin/bash
#
# An easily-extensible "login banner". Put it in your $PATH and call it from your .bashrc.
# Mainly it shows tmux sessions.
# A "full" view with decorations is given on first run. After that a compact view is
# printed. After an hour has passed the next new terminal will give the full view agian.
columns=$( tput cols )
color1='\033[38;5;036m'
color2='\033[38;5;046m'