Skip to content

Instantly share code, notes, and snippets.

View climbTheStairs's full-sized avatar
🐧
"There is no justice in the world, not unless we make it."

wren climbTheStairs

🐧
"There is no justice in the world, not unless we make it."
View GitHub Profile
@probonopd
probonopd / Wayland.md
Last active February 20, 2025 04:42
Think twice about Wayland. It breaks everything!

Think twice before abandoning Xorg. Wayland breaks everything!

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.


As 2024 is winding down:

@dpinela
dpinela / govarargs.md
Created January 24, 2018 11:27
Go experience report about issues with variadic functions

Counter-intuitive behaviour of Go variadic functions

In Go, we can define functions that take a variable number of arguments, by defining a "rest" argument. When calling such a function, one can pass the elements of a slice as the "variadic" arguments with the ... syntax, as in:

elems := []string{"usr", "local", "bin"}
p := filepath.Join(elems...)

However, this only works if the slice:

  1. lines up exactly with the "rest" argument
@wojteklu
wojteklu / clean_code.md
Last active March 3, 2025 10:06
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@subfuzion
subfuzion / curl.md
Last active February 26, 2025 20:07
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.