this post was submitted on 15 Jun 2023
402 points (99.3% liked)

Programmer Humor

32601 readers
1885 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 42 comments
sorted by: hot top controversial new old
[–] [email protected] 34 points 1 year ago (3 children)

A temporary fix for overloaded lemmy.ml servers, via THAIO (Throw-Hardware-At-It Optimisation)...

[–] [email protected] 14 points 1 year ago

Nothing more permanent than a temporary solution

[–] shroomato 7 points 1 year ago (1 children)

Sadly there's only one server since Lemmy doesn't support horizontal scaling (hopefully for now only)

[–] [email protected] 5 points 1 year ago

This sounds like something we need. I'm sure it's much harder to implement than I imagine (I'm not a programmer, just a geek). Lemmy needs more devs.

[–] [email protected] 4 points 1 year ago
[–] dan1101 23 points 1 year ago* (last edited 1 year ago) (1 children)

I actually ran a moderately active (like 20,000 hits a day) small business site from a laptop for a couple years. Of course one of the first thing I did was put a "SERVER DO NOT SHUT DOWN" sticker on it, and set the power settings so closing the lid did not shut down or sleep the computer. It was a Dell 7000 series with 16GB IIRC, it did great.

[–] [email protected] 10 points 1 year ago* (last edited 1 year ago)

Not advertising here, but with this low traffic you could be in a permanent free tier with AWS with all the availability guarantees. It doesn't work with EC2, but for serverless solutions (ApiGateway, Lambda, DynamoDB) they have something like "we start charging after 1M calls per month" (don't quote me on this exact number). I have a couple of pet projects working this way

[–] [email protected] 23 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago

Before the upgrade, I hope.

[–] [email protected] 15 points 1 year ago (1 children)

Bro that's the Reddit server.

[–] [email protected] 1 points 1 year ago

They've upgraded due the IPO, they now also have a fake serverroom with a bunch of blinkenlight generators

Those Blinkenlight generators are obviously trained by AI to make it look more realistic

[–] [email protected] 13 points 1 year ago

Unplug it real quick so we can find out

[–] whoharold 11 points 1 year ago

This looks like my old laptop - Lenovo Y510P. Even down to the slight abrasion below the mousepad from the user wearing a watch with a metal band.

It had SLI GPUs in a laptop through the ultra bay. It was a beast for about 20 minutes until the heat built up.

[–] EqMinMax 9 points 1 year ago (3 children)

laughs in "stay awake even if lid is closed" settings in linux.

[–] [email protected] 5 points 1 year ago (1 children)

I used to work for a notebook manufacturer, and it was a non-trivial part of the cooling strategy that the lid is open under load.

I hope they've changed, but megacorps usually don't.

[–] [email protected] 1 points 1 year ago

My ASUS work laptop absolutely screams if the lid is closed while I'm working on my other monitor. It drives me nuts.

[–] [email protected] 4 points 1 year ago

Even Windows 98 has that setting

[–] SeeMinusMinus 8 points 1 year ago (1 children)

I have a minecraft server running on a laptop like this. Sadly I don't have any friends that want to play minecraft right now ):

[–] lemmein 0 points 1 year ago (2 children)
[–] SeeMinusMinus 2 points 1 year ago

my server is running 1.19.3 so not old school but i will still come to chill

[–] [email protected] -2 points 1 year ago (1 children)
[–] [email protected] 7 points 1 year ago (1 children)
[–] [email protected] 3 points 1 year ago (1 children)

Just pop the magnet out of the lid.

[–] [email protected] 5 points 1 year ago

This is the correct, cross platform solution. It works on all operating systems!

[–] [email protected] 7 points 1 year ago

Yo, how'd you get in my home lab?

[–] [email protected] 6 points 1 year ago (1 children)

I have an old Raspberry Pi 1 lying around. Should I spin up my own instance?

[–] [email protected] 5 points 1 year ago

I'm actually thinking about doing this exact thing with my own rpi b rev2 from 2012. I'm not sure it'll even run a kbin/Lemmy instance though

[–] [email protected] 6 points 1 year ago

Old shitty laptops make good servers. They have a built-in UPS.

[–] [email protected] 4 points 1 year ago

The server stopped serving?

[–] Dandroid 3 points 1 year ago (1 children)

How did you get into the Jagex office?

[–] [email protected] 2 points 1 year ago

This is the server used for the total level worlds

[–] [email protected] 2 points 1 year ago

To answer your question: Most of Them, probly.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

Please use an ethernet cable, you gonna need to keep that connection spotless and WiFi are vulnerable no matter which protocols, better turn it off.

If I may also add a secure systems (Harden its configuration), a custom firmware on your router(Rec. Tomato series most updated)/hardware firewall(Rec. pfSense) with a VPS if the network is used for other means, they will help you in the long-term.

It should go without saying if you can't secure a server, don't host one. You're responsible for anything that happens to it & us.


Gpt-4 Prompt using Forefront.ai (Worth taking a note):

Q: Recommendations on the levels of security that need to be taken into account for self-hosting a decentralised community
A: Self-hosting a decentralized community involves a number of security considerations. Here are some recommendations:

  1. Secure Server Configuration: Ensure that your server is configured securely. This includes using strong, unique passwords, disabling root login, and setting up a firewall. Also, consider using a security-focused operating system like SELinux or HardenedBSD.

  2. Data Encryption: All data, both at rest and in transit, should be encrypted. Use protocols like HTTPS for web traffic and SFTP for file transfers. For data at rest, consider using disk encryption technologies like BitLocker or LUKS.

  3. Regular Updates and Patches: Keep your server and all software up-to-date. This includes the operating system, web server software, database software, and any other software you're using. Regularly apply patches to fix any known vulnerabilities.

  4. Backup and Recovery: Regularly backup your data and test recovery procedures. This will help you recover quickly in case of a data loss event.

  5. Access Control: Implement strict access control measures. This includes limiting who has access to your server and what they can do. Use technologies like two-factor authentication (2FA) to add an extra layer of security.

  6. Intrusion Detection and Prevention Systems (IDS/IPS): Use IDS/IPS to monitor your network for suspicious activity and automatically block or alert you of potential threats.

  7. Secure Application Development: If you're developing your own applications, follow secure coding practices. This includes input validation, output encoding, and proper error handling. Consider using a security framework to help with this.

  8. Privacy Protection: As a decentralized community, your users will likely value their privacy. Use technologies like Tor or VPNs to help protect user privacy. Also, have a clear privacy policy and follow it.

  9. Auditing and Logging: Keep detailed logs of all activity on your server. This can help you identify and investigate any security incidents. Also, regularly audit your security measures to ensure they're working as expected.

  10. Education and Awareness: Educate yourself and your community about security best practices. This includes things like recognizing phishing attempts, using strong passwords, and being cautious with downloads and attachments.

Remember, security is not a one-time thing but a continuous process. Always stay informed about the latest threats and security best practices.

[–] [email protected] 1 points 1 year ago

Don't worry comrade, this is a humor community ;) Thanks for the well-intentioned advice though.

load more comments
view more: next ›