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 February 27, 2025 20:23
Make Firefox fast again
@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:

@beci
beci / aur_speed_up.md
Last active November 27, 2024 07:16
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)"