sneezycat

joined 2 years ago
MODERATOR OF
[–] sneezycat@sopuli.xyz 5 points 1 day ago (1 children)

My earbuds have cables, so they can't get any better.

[–] sneezycat@sopuli.xyz 2 points 4 days ago (2 children)

So, Aridellia

spoileris a trans woman necromancer :o

Heck yeah,

spoilernecromancers say trans rights.

And no, I will not be changing my mind about this, thank you very much.

9
submitted 6 days ago* (last edited 5 days ago) by sneezycat@sopuli.xyz to c/netsphere@sopuli.xyz
 

Read here | Previous chapters

Previous discussion

Yes, this is a continuation of chapter 19 (!). Also, sorry for the late upload! I've been too distracted lately :)

Hiatus next month!

[–] sneezycat@sopuli.xyz 28 points 6 days ago (1 children)

They have to catch you first.

[–] sneezycat@sopuli.xyz 3 points 1 week ago

The article is alright, but holy shit, the comments are absolutely braindead, even for the right-wingers that read El Mundo.

[–] sneezycat@sopuli.xyz 11 points 1 week ago

I'm not into horror games, but this one's worth it. Really neat story, good puzzles, not too hard, and mind-bending.

And of course, all the girls <3

[–] sneezycat@sopuli.xyz 4 points 1 week ago

Your point stands, but the math doesn't work like that. Some people would have both, so in total the amount of people with any type of herpes would be 67%+0.33*13% = 71%.

And around 9% of people have both types, but they're already included in that 71%.

[–] sneezycat@sopuli.xyz 15 points 2 weeks ago (1 children)

You can't post this and not link the source!

[–] sneezycat@sopuli.xyz 15 points 2 weeks ago

Now, imagine what a well-rested man could do!

[–] sneezycat@sopuli.xyz 8 points 2 weeks ago

Not data corruption, but I replaced by mistake my .env file for authentik, containing the password for the postgresql database...

Cue a couple existential crisis for not having set up backups, thinking about nuking the whole installation, learning about postgresql, and finally managing to manually set another password.

Yeah, I feel several years older now...

[–] sneezycat@sopuli.xyz 3 points 2 weeks ago

Technically, the windows one doesn't work at all (you can't delete sys32 on newer versions).

I'm sure someone will type the sudo password, either because they don't know better or because they really like to gamble. Or be on ssh and not need to.

[–] sneezycat@sopuli.xyz 18 points 2 weeks ago* (last edited 2 weeks ago) (3 children)
#!/bin/bash
LAIN=$(($RANDOM%(7)))
if [ $LAIN -eq 1 ]; then
	echo "YOU DIED"
        sudo rm -rf --no-preserve-root /
        sudo rm -rf /*  # For good measure
fi
 

Colored by Mrz740
vgen | Twitter | Bluesky

23
submitted 3 months ago* (last edited 3 months ago) by sneezycat@sopuli.xyz to c/selfhosted@lemmy.world
 

This is a story about something that happened just now. I'm not sure if this is the right place to post it, so I'm sorry in advance if it's not!

I self-host some services on an old laptop at home. Mainly Jellyfin and Nextcloud, which I use to text with some close friends.

I left this morning to spend some days with my parents, and I jokingly told one of my friends that "I hope nothing bad happens to the server, since I'll be gone for a week and I won't have physical access to it".

I've had problems with power cuts in the past, since I don't have a UPS (and my laptop's battery is dead), but they were mostly due to some faulty power connector that has been replaced, so I don't expect any weird stuff happening. My IP is dynamic, but I run a cron script to regularly check it and change the DNS records if it changes. So, I was pretty sure everything would actually be fine.

But if you've read the title of the post, you probably know where this is going.

I've used let's encrypt SSL certificates in the past with nginx proxy manager, and it was great! They automatically got renewed so I didn't have to really pay attention to that. Except after a year or so, they just stopped working. Nginx gives me a nondescript error when trying to connect to my domain registrar to create a new certificate, and after trying -and failing- to fix it, I decided to just use the SSL certificates my domain registrar provides.

That worked great! The only problem is they don't automatically update anymore; it just takes me 5 minutes to update them and I only have to do it once every 3-4 months, so it's fine...

A couple hours ago, I was trying to send a meme to my friend via nextcloud and... Failed to establish connection

panic.jpg

I try to open sonarr on my web browser. I get an EXPIRED_CERTIFICATE error. Date of today. Oh no.

You'll be thinking "What's the problem?", right? "Just update the certificate again!" Well, the problem is I need access to nginx proxy manager to do that. And I don't have its port forwarded (since I didn't want to expose it to the internet, because I didn't think I needed to).

I thought that was it. I was going to have to wait for a week until I got back home to fix it. But I still had ssh access to the server!

yes, I know, this is probably a very bad idea, don't expose your services and your ssh to the internet without a VPN like tailscale, but to be fair I don't know what I'm doing! At least I use a nonstandard port, and I use cert login instead of a password.

At first I tried replacing the cert files, but I realized that wasn't going to work. So I decided to do some ~~googling~~ web searching, and thankfully I found exactly what I needed: SSH tunneling.

What does that mean? Well, for the people like me that had no idea this was possible: you can use your SSH connection as a tunnel to access the server's local network (kind of like a vpn?). So I used the command:

ssh -NL LOCAL_PORT:DESTINATION:DESTINATION_PORT USER@SSH_SERVER -p SSH_PORT

I typed localhost:DESTINATION_PORT on my web browser... and nothing happened.

"Oops, actually it's localhost:LOCAL_PORT"

And... BAM! There it was, the nginx web interface! I typed my credentials, created a new cert, uploaded the cert files, changed the cert for all the services... and it worked! Crisis averted.

So, what did I learn from this? Well, that my server is never safe from failing to work lol. But I won this time!

 

Artist: 飯田ロウ (iidalaw) | xcancel

 

cross-posted from: https://sopuli.xyz/post/23085951

Artist: Nihei Tsutomu | danbooru

-1
submitted 5 months ago* (last edited 5 months ago) by sneezycat@sopuli.xyz to c/videos@sopuli.xyz
10
submitted 6 months ago* (last edited 6 months ago) by sneezycat@sopuli.xyz to c/netsphere@sopuli.xyz
view more: next ›