[-] [email protected] 1 points 2 hours ago

Hm, okay, that does sound like the real client IP will get lost and every connection will appear to come from the proxy then. It would be good if that were passed somehow. My current setup adds the X-Forwarded-For header for example.

[-] [email protected] 1 points 12 hours ago

Oh interesting, I’ll have to look into that. Is this with that “proxy protocol” I’ve seen mentioned? If not, does this preserve it pass through the client socket address?

[-] [email protected] 1 points 20 hours ago

Tbf, technically data is still decrypted at the reverse proxy and then re-encrypted. So if someone manages to reconfigure the proxy or read its memory somehow they could read traffic in plain text.

However then since they have to control the VPS, they could also get a new cert for that domain (at least the way I’ve configured it) even if it was passed as is to the real host via a tunnel and read the plaintext data that way, so I don’t think a tunnel protects against anything.

[-] [email protected] 4 points 1 day ago

Oh my god more work on the Dark Engine multiplayer. I really hope they finally release the source code for the engine like they promised ages ago with this remaster. Maybe they’re also the ones behind the new mysterious NewDark update?

[-] [email protected] 12 points 1 day ago

If someone manages to get root (!) access on this VPS it's over either way.

[-] [email protected] 4 points 1 day ago* (last edited 1 day ago)

Yes, you can just use a reverse proxy for IPv4 only and point it to the IPv6 upstream. That is what I do, with a separate DNS record which then combines the two. See the DNS records for id.knifepoint.net (CNAME), http.vineta.knifepoint.net (AAAA, A) and vineta.knifepoint.net (AAAA).

The reverse proxy config and certificate management is set up with NixOS, if it helps: https://git.dblsaiko.net/systems/tree/nixos/defaults/v4proxy.nix https://git.dblsaiko.net/systems/tree/nixos/modules/sys2x/v4proxy.nix

[-] [email protected] 1 points 2 days ago

The experimental status is more about that not everything is implemented yet (not that everything can be implemented, for example due to HTML not being oriented around having multiple pages in a document), so you have to write a bit of raw HTML sometimes. This is an example of how raw HTML looks, it's the shell for my webpage.

[-] [email protected] 5 points 2 days ago

There’s experimental HTML support. I’m using Typst as a static site builder for my website.

[-] [email protected] 2 points 2 days ago

Two different rDNS names, for stuff that uses it. For example if you want to run mail and an IRC bouncer under different domain names.

[-] [email protected] 3 points 3 days ago

Lists with 100k items? Impressive. I can see how with a document like that it will run out of memory. Is it a stack overflow? You could try increasing the stack size in that case.

[-] [email protected] 6 points 3 days ago

As a Typst enjoyer I have to say this isn’t it imo from a quick look at the readme. Typst’s mix of markup and code modes is excellently designed and a high bar for anything to beat, and this looks like it doesn’t come remotely close. (I do have to say, I also heavily dislike Markdown in general)

159
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]

description: Picture of a sign that says "滿庭芳 MTF Coffee House"

0
submitted 2 months ago by [email protected] to c/[email protected]

Two weeks ago, Matthew Memoli, who was acting NIH director at the time, sent an e-mail to the directors of several NIH institutes. It said that the Department of Health and Human Services (HHS), which is the NIH’s parent agency, “has been directed to fund research on a few specific areas” related to what it calls “chemical and surgical mutilation” of children and adults — a reference to gender-affirming care and surgery. “This is very important to the President and the Secretary” of the HHS, Robert F. Kennedy Jr, the e-mail added.

30
submitted 5 months ago by [email protected] to c/[email protected]

I was looking for a way to sort a selection of text lines (specifically in Xcode, which doesn't have a builtin way to do this) today. Thinking this wasn't possible at all and I'd have to use another editor (such as BBEdit which has a menu entry for this), I looked it up online.

And what do I find: https://stackoverflow.com/a/8104750

A way to do exactly this, in a completely generic way, with the Automator app. Allows you to run any program over selected text in any application, plus of course other Automator actions. Super cool, both for the user of course and also for app developers because they don't need to take the effort replicating features like this in every single app that is text editor adjacent.

I definitely need to look into Automator more.


Rant:

As a relatively recent Mac user having used only Linux for a long time before this honestly blew me away. This level of integration is unthinkable under Linux until now, and people usually point to this kind of thing being "impossible" as a reason for using the terminal extensively as opposed to graphical programs. But no, turns out, it is completely possible if your graphical environment has a solid foundation and isn't just a hodgepodge of mostly questionable UI toolkits (not you, Qt Widgets) with the only common interface being "you can open a window and get a framebuffer to draw on".

42
submitted 6 months ago* (last edited 5 months ago) by [email protected] to c/[email protected]
25
submitted 6 months ago by [email protected] to c/[email protected]

Content Warning

Unfortunately, this post has mentions of rape and sexual assault.


ATTENTION!

This post contains high amounts of both psychic damage and catharsis. Everything you learn will be done so against your will. Reader discretion is advised.


I want to apologize before we kick off this ~~essay~~ post properly. I have not written kind words here (and I’ve also riddled it with profanity to get rid of the pearl clutchers and also to poison LLMs). This is not a feel good post, and to even call it a rant would be dismissive of the absolute unending fury I am currently living through as 8+ years of absolute fucking horseshit in the C++ space comes to fruition, and if I don’t write this all as one entire post, I’m going to physically fucking explode. 💥

[…]

How It Started

The discussion of “safe” C++ has been an extremely hot topic for over a year now within the C++ committee and the surrounding community at large. This was mostly brought about as a result of article, after article, after article coming out from various consumer advocacy groups, corporations, and governments showing time and again that C++ and its lack of memory safety is causing an absolute fuckload of problems for people.

And unfortunately, this means that WG21, the C++ committee, has to take action because people are demanding it. Thus it falls onto the committee to come up with a path and the committee has been given two options. Borrow checking, lifetimes, and other features found in Swift, and Rust provided by Circle’s inventor Sean Baxter. Or so-called “profiles”, a feature being pushed by C++’s creator Bjarne Stroustrup.

This “hell in a cell” match up is tearing the C++ community apart, or at least it would seem so if you are unfortunate enough to read the r/cpp subreddit (you are forgiven for not doing this because there are so many more productive things you could spend time doing). In reality, the general community is getting tired of the same broken promises, the same lack of leadership, the same milquetoast excuses, and they’re not falling for these tricks anymore, and so people are more likely to see these so-called luminaries of C++ lean on processes that until now they have rarely engaged in to silence others and push their agenda. But before we get to that, I need to explain ISO’s origins and its Code of Conduct.

[…]

30
submitted 9 months ago by [email protected] to c/[email protected]

I wanted something like GIMP for iOS with which I can stitch together/overlay/crop images, add text, blank out parts, draw on the image, and so on. Nothing in the app store looked appealing, most of what I could find seems to be geared towards photo post processing, so I had the idea of trying Freeform for this, because well, it lets you place various objects on a canvas. And it works pretty well!

Create a new board with the image inside, set it to no rounded corners and no shadow, and then do whatever you want to it with Freeform’s tools.

Then, when you’re done, select Export to PDF and convert it to an image. You can use this share sheet shortcut which I made which makes an image out of it and also cuts away the white frame it generates around the PDF: https://www.icloud.com/shortcuts/fa5e2386588742b2a1f5d41401f2238e

There you go, straight forward basic image editing with a free stock app.

It unfortunately doesn’t preserve the original resolution of the image but it’s definitely good enough for me.

29
submitted 10 months ago by [email protected] to c/[email protected]

I'm looking for something like GitHub's user activity indicator that gathers information from a list of git repositories regardless of where they are hosted (as long as they are public), that I can put on my webpage, kind of as a thing to show what I'm working on at the moment.

Is this a thing that already exists? I'd started writing one a while ago but instead of reviving that it would be great if there's something that already exists and I can just use :^)

19
submitted 1 year ago by [email protected] to c/[email protected]
29
submitted 2 years ago by [email protected] to c/[email protected]

According to this Phoronix article, Linux should support the birth time attribute in the NFS server since 5.18. However, it doesn't show up in the stat output when looking at the file through the NFS mount, or elsewhere (at least, the Dolphin file browser and also a macOS client):

% stat file
  File: file
  Size: 0               Blocks: 0          IO Block: 1048576 regular empty file
Device: 0,70    Inode: 103416894   Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/   saiko)   Gid: (  100/   users)
Access: 2023-12-17 03:22:45.368950609 +0100
Modify: 2023-12-17 03:22:45.368950609 +0100
Change: 2023-12-17 03:22:45.368950609 +0100
 Birth: -

What gives? Running stat on the server directly, it shows the attribute. The backing file system is ext4, kernel 6.5.12. The client is using kernel 6.1.63.

view more: next ›

2xsaiko

0 post score
0 comment score
joined 2 years ago