@ttyrandom.bsky.social
Linux and Open Source.
Reposted
🎉We're celebrating 5 years of Tailscale! Read on for key lessons learned from half a decade of simplifying secure networking + enter to win one of five lifetime Personal Plus plans! Repost to win
👉 Read more tailscale.com/blog/5-thing...
🗒️ Full rules here - tailscale.com/blog/5-thing...
April 3, 2025 at 1:10 PM
YA TIL tcpdump can just display incoming or outgoing traffic

Linux
-Q in
-Q out

BSD
-D in
-D out

utcc.utoronto.ca/~cks/space/b...
Chris's Wiki :: blog/sysadmin/TcpdumpOnlyInOrOut
utcc.utoronto.ca
January 9, 2025 at 9:21 AM
TIL a handy way to diff two directories

git diff --no-index dirA dirB

dirA and dirB are not git repositories.
January 8, 2025 at 5:36 PM
TIL that following are UB and why it matters !

memcpy(NULL, NULL, 0);
memcmp(NULL, NULL, 0);
(int *)NULL + 0;
(int *)NULL - 0;
(int *)NULL - (int *)NULL;

from

developers.redhat.com/articles/202...
Making memcpy(NULL, NULL, 0) well-defined | Red Hat Developer
C2y makes memcpy(NULL, NULL, 0) and other zero-length operations on null pointers well defined. This removes a source of bugs that may result in security issues.
developers.redhat.com
December 11, 2024 at 3:01 PM
TIL that you can create brave browser profiles with different configurations for same extensions. Allows one to have different VPNs for different profiles.
December 2, 2024 at 7:33 AM
Need to remember to use unbuffered output to avoid headscratcher moments.

ag $patter $path | tee results.txt

scratch my head for results not appearing for a long time (buffered)

stdbuf -o0 ag $patter $path | tee results.txt

see the output as ag finds them
November 25, 2024 at 1:54 PM