NotAnArdvark

joined 1 year ago
[–] NotAnArdvark@lemmy.ca 3 points 9 months ago

I really enjoyed reading this, thank you.

I'd be interested in reading more about the benefits of using an atomic distro, if you were looking for ideas on things to write about. I imagine it must make system upgrades easier but what about replicating your setup elsewhere? Like if I was doing some development and now I need to throw some serious hardware at the problem, could I just backup all my Flatpaks some configs, and spin up my desktop on a cloud VM?

I'm pretty sure that's what Nix is all about, but the learning curve seems steep.

[–] NotAnArdvark@lemmy.ca 2 points 10 months ago

I really appreciate this, thank you. I think I had confused myself by playing with 'u16' and 'u8' and somehow coming to the conclusion that they were matching the right side of a 32-bit string. (Which may still be true, but, I'm just masking u32s now).

This is what I ended up with, which is working the way I'd expect:

tc filter add dev wlan0 protocol ip parent 1: prio 1 u32 \
	match u32 0x30d6 0x0000ffff at -16 \
	match u32 0xc92d1905 0xffffffff at -12 flowid 1:20

This sends Ethernet frames destined for 30:d6:c9:2d:19:05 to flow 1:20, and it doesn't seem to match a second device I tested. So, all good! Thank you again.

[–] NotAnArdvark@lemmy.ca 10 points 11 months ago (3 children)

Here's a little script I've put in my $PATH, called memsum:

#!/usr/bin/bash
/usr/bin/ps -eo rss,command --sort -rss | egrep $1 | awk '{ hr=$1/1024 ; sum +=hr} END {print sum}'

Now you can go: memsum firefox or memsum whatever and see that, actually, apps use a ridiculous amount of memory these days.

I can get Firefox up to 8GB by using things like Office 365.

view more: ‹ prev next ›