Spyke

Replies

lemmy

Comment on

A janky guide for Lemmy administrators to purge spam signups, hourly.

Don't delete from the local_user table. You only need to delete from the person table, the rest of the tables will be updated automatically and user count will update automatically.

Edit: The below command will delete all unverified users. NOTE: If you do not have email verification turned on then all users are unverified, therefore all users will be deleted. It also appears with v18 when you enable email verification all existing users remain unverified.

This is a destructive command, use at your own risk and don't go fucking with the database if you don't have backups.

DELETE FROM person WHERE local = 'true' AND id IN (SELECT person_id FROM local_user WHERE email_verified = 'false');

In the parenthesis you can add your AND to only select unverified accounts of a certain age.

lemmy

Comment on

What is the long-term storage plan for Lemmy instances?

Reply in thread

For large instances pictures is probably the bigger consumer of space, but for small instances the database size is the bigger issue because of federation. Also, mass storage for media is cheap, fast storage for databases is not. With my host I can get 1TB of object storage for $5 a month. Attached NVMe storage is $1 per month per 10 GB.

For my small instance the database is almost 4x as large as pictrs, and growing fast.

Comment on

Thinking on a welcome message to post on Reddit.

I agree. The more familiar I get with Lemmy under the hood it's apparent they weren't ready for this level of users, and there's a lot of rough edges. I also don't plan on quitting Reddit cold turkey, so definitely see Lemmy as something that can coexist as an alternative until is gets polished.

Reading through the r/Denver threads about the blackout it's clear vast majority of users are annoyed by it and don't give a shit about the API stuff, so probably best to avoid that topic altogether. The angle should be the general direction reddit is heading and giving power back to the users and their communities.

Comment on

The US government is taking a serious step toward space-based nuclear propulsion

Reply in thread

Some satellites and rovers have used Radioisotope Thermoelectric Generators (RTGs), which are very different from a nuclear reactor. They use polonium-210, which generates heat, and that heat is converted to electricity with thermocouples. They are low power and inefficient.

To my knowledge no satellite, with an RTG, has ever used ion propulsion. Few interplanetary satellites have ever even used ion thrusters. Dawn, Hayabusa, and Deep Space 1 are the only I can think of, and they all used solar arrays.

Ion thrusters are super efficient, but produce extremely small amounts of thrust. They aren't practical for getting large spacecraft to Mars. These proposed nuclear engines produce large thrust while have efficiency somewhere between regular chemical propulsion and ion propulsion.

Comment on

Welcome!

Reply in thread

I went with Vultr for hosting and it's running on one of their servers in Dallas (closest I could get). It's their AMD high performance cloud compute, 1vCPU, 1 GB Memory, 2 TB bandwidth, 25 GB NVMe storage. Plus auto backups it costs $7.20 a month. Upgrading performance within their cloud compute is super quick an easy so I can bump up performance as needed. The .social TLD ended up being $30 for the year. I also had tons of issue with email so I also set up email through Zoho, which is another $12 a year. All said and done just over $10 a month.

On my to-do list is a post in the support community to keep track of all this in an effort to be as transparent as possible.

Comment on

How to best share your instance

I still think instances should be largely region based, which is why I started one for Colorado. As far as sharing it I'm not really sure either other than spamming it everywhere (which I also don't want to do). Instance discovery kind of sucks, you can't even search on the main join Lemmy page.

Comment on

Welcome!

Reply in thread

Will do! For now, the cost isn't an issue but if the instance gains traction, and I have to start upgrading the server/add more storage, I'll start looking into donations. I think the main thing for now is promoting to gain some users!

lemmy

Comment on

PSA: Many Lemmy instances are currently experiencing massive automated sign-ups (bots)! If you run an instance with open sign-ups, please read!

Looks like my instance got hit with a bot. I had email verification enabled but had missed turning on captcha (captcha enable should be up with enabling email verification settings). The bot used fake emails so none of the accounts are verified, but still goes towards account numbers. Is there really any good way to clean this up? Need a way to purge unverified accounts or something.

lemmy

Comment on

Queries for instance admins, for detecting bots and spam users.

Reply in thread

Yes, person table is top level. Delete from person table and it cascades down and deletes from other tables. User count also automatically updates. Just be careful because person table also contains federated users. There is a "local" column to determine if they are local users or not.

I had about 6k bot accounts, but they were all unverified, so I just deleted all local unverified accounts from the person table.

Just don't go messing with the database without backups. My host supports snapshots so I did a quick snapshot before messing with anything.