Skip to content

Instantly share code, notes, and snippets.

@zDEFz
zDEFz / iomemdec.py
Created December 28, 2022 20:22 — forked from paulguy/iomemdec.py
Script to output /proc/iomem size
#!/usr/bin/env python
import sys
SUFFIXES = ('', 'KiB', 'MiB', 'GiB', 'TiB')
def decode(filename, human=False):
with open(filename, 'r') as infile:
for line in infile:
line = line[:-1]
@paulguy
paulguy / iomemdec.py
Last active December 28, 2022 20:43
Script to output /proc/iomem size
#!/usr/bin/env python
import sys
SUFFIXES = ('', 'KiB', 'MiB', 'GiB', 'TiB')
def do_decode(infile, human):
for line in infile:
line = line[:-1]
newline = line.strip()
@RubenKelevra
RubenKelevra / fast_firefox.md
Last active May 30, 2024 11:01
Make Firefox fast again
@probonopd
probonopd / Wayland.md
Last active June 2, 2024 21:54
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.

Wayland proponents make it seem like Wayland is "the successor" of Xorg, when in fact it is not. It is merely an incompatible alternative, and not even one that has (nor wants to have) feature parity (missing features). And unlike X11 (the X Window System), Wayland protocol designers actively avoid the concept of "windows" (making up incompr

@beci
beci / aur_speed_up.md
Last active May 15, 2024 22:21
Speed up compiling of AUR packages in arch linux

Edit /etc/makepkg.conf

replace in CFLAGS and CXXFLAGS to use the native one

-march=x86-64 -mtune=generic to -march=native

speed up build by set multiple threads

MAKEFLAGS="-j$(nproc)"