@domi@donotsta.re
@domi@donotsta.re avatar

domi

@domi@donotsta.re

scared of you more than you think
interests: reverse engineering, networks, osdev and olde shite

"we can't all be gay. but we can all do crime" ~ juh
"Plural system, (...) very cute" ~ @phos
"idk, these things work better when they're out of context IMO" ~ @linus
"you’re such a zork" ~ @jaiden
"one sec; aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa :neocat_blush_hide:" ~ https://donotsta.re/users/filmroellchen

aka Dominique (catchall; headmates: Alice, Paula, Tulip, Emily)

This profile is from a federated server and may be incomplete. Browse more on the original instance.

domi, to random
@domi@donotsta.re avatar

@puniko puniiii please fix https://fedi.absturztau.be/emoji-packs/ :neocat_pleading:

pretty thanks in advance

domi, to OH
@domi@donotsta.re avatar

:

  • “what if we made an ISP over AC?”
  • “BGP over Avian Carrier?”
domi, to random
@domi@donotsta.re avatar

i did not have “Linus makes a bash shitpost” on my 2024 bingo card

RE: https://donotsta.re/objects/37a2da66-6494-4f20-a6ee-615b9a5b25d5

domi, to OH
@domi@donotsta.re avatar

: how have you not dissolved into the floor yet

domi, to random
@domi@donotsta.re avatar

love seeing comments like those in my code

i’m now myself (?) from the future of that future and I doubly don’t remember what that TODO was about

domi, to random
@domi@donotsta.re avatar

AAAAAAAAAAAAAAAAAAAAAAAAAA

domi, to random
@domi@donotsta.re avatar

It’s again!

Being on the internet (which, I think you are right now - sorry to break the news to you :neocat_hug:), you’ve probably heard the term “cat abuse” from some reply guy. Usually it boils down to something like this:

cat a | grep meow

cat, and, by extension, the pipe, are redundant here because grep can just read a file. There are certain arguments for, and against this (i.e. when editing a regexp, it may make sense to do cat abuse, as you don’t have to scroll through the filename with each iteration); But this is not what I call cat abuse. There’s one way that’s even more cursed, but also makes some sense to use in a script.

Have you ever wanted to filter a file and send the output back into the same file, with no intermediates? Or maybe prepend a 2nd file to your first one, without creating a mess? Try this:

cat <<< "$(cat "$subtemplate" "$tmp")"" > "$tmp" 

This is taken from HTTP.sh, the templating engine to be precise. That file is kind of cursed and not necessarily good code in general, but this line is special and i’ve been reusing it in a bunch of places.

Bash pipes and redirects have a few levels of precedence. By default, if you execute cat b a > a, the a file gets overwritten before it can be read. Instead, we use a subshell in a herestring (although a herestring is not strictly necessary for this trick). A subshell always takes precedence before the redirect, thus our file can be read and written in a single command chain!

Another neat oddity is that pipes act very similarly to subshells! Similarly, that “cat abuse” from before could be rewritten to a somewhat simpler form:

cat b a | tee a
# works like you'd expect!

On the contrary, you might have noticed that it’s impossible to set a variable in a pipe chain and read it back later:

$ echo meow | read n
$ declare -p n
bash: declare: n: not found

Now, this can be solved by using a herestring! Just restructure it like so:

$ read n <<< "$(echo meow)"
$ declare -p n
declare -- n="meow"

All this can be slightly confusing, but I hope this post made it a bit simpler :blobcatheart:

domi, to random
@domi@donotsta.re avatar

you cannot spell SIGNUP without spelling GNU

domi, to random
@domi@donotsta.re avatar

sorry for DoSing your server,,, i just needed your custom emojis

i was really hungy

domi, to random
@domi@donotsta.re avatar

i wonder how much faster akkoma would be if it didn’t store JSON objects in a massive object table

i know why it’s done like this, but perf suffers soooooo baaaaadlyyyyyyy

domi, to random
@domi@donotsta.re avatar

thanks to @iro_miya i’m now aware that my pronunciation of the word “quirky” is, in fact, quirky

domi, to OH
@domi@donotsta.re avatar

  • what is it?
  • floor cleaner
  • what?
  • it clears the floor
domi, to random
@domi@donotsta.re avatar
domi, to random
@domi@donotsta.re avatar

"how was your trip to the Netherlands? did you see any Ghasts?"

domi, to random
@domi@donotsta.re avatar

do people really enjoy programming?

outside of isolated cases, i spend half of the time dissociating and the other time vaguely writing code

domi, to random
@domi@donotsta.re avatar

starting to watch a media.ccc.de video

“HELLO, I HOPE YOU CAN HEAR ME CLEALRY”

all the catgirls in the room scream in unison because it was frighteningly loud

“yes, we can David. loud and clear”

domi, to OH
@domi@donotsta.re avatar

: bourne again shrimple

domi, to random
@domi@donotsta.re avatar

for just $141.88, this breakout can be yours!

domi, to random
@domi@donotsta.re avatar

seeing people complain about flexbox and i feel like i have ascended that whole discussion even before it started

something doesn’t display properly? sure lemme just F12, display: and press the arrow down until it looks properly :blobcatsweat:

domi, to random
@domi@donotsta.re avatar

i have apparently reached the level of iptables proficiency where:

  1. I have a problem that’s non-trivial, but sounds doable
  2. randos on the internet say it “can’t be done”, “don’t use ip6tables for that”, etc
  3. failing to find a solution, I try to write a rule that has a correct vibe
  4. tfw it works first time
domi, to random
@domi@donotsta.re avatar

new internet standard: announced on fedi

now for the hard part of my morning: breakfast

domi, to random
@domi@donotsta.re avatar

waaah it’s this time of spring where it was already warm for a few days so my expectations are “hooray, i can open the window!” and the reality is that it’s like 8°C out there

scammed

domi, to random
@domi@donotsta.re avatar

new profile background because framebuffer corruption pretty

domi, to random
@domi@donotsta.re avatar

ah yes, the scientific terms:

  • soft bonk
  • hard bonk

i firmly believe that both of those are what you get when you post various levels of cursed hacks on fedi

domi, to random
@domi@donotsta.re avatar

that’s asking a lot

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • khanakhh
  • kavyap
  • thenastyranch
  • everett
  • tacticalgear
  • rosin
  • Durango
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • InstantRegret
  • Youngstown
  • slotface
  • JUstTest
  • ethstaker
  • ngwrru68w68
  • cisconetworking
  • modclub
  • tester
  • osvaldo12
  • cubers
  • GTA5RPClips
  • normalnudes
  • Leos
  • provamag3
  • anitta
  • lostlight
  • All magazines