• 0 Posts
  • 59 Comments
Joined 2 years ago
cake
Cake day: June 1st, 2023

help-circle

  • And if you want some customisation, e.g. some repeating string over and over, you can use something like this:

    yes "b0M" | tr -d '\n' | head -c 10G | gzip -c > 10GB.gz
    

    yes repeats the given string (followed by a line feed) indefinitely - originally meant to type “yes” + ENTER into prompts. tr then removes the line breaks again and head makes sure to only take 10GB and not have it run indefinitely.

    If you want to be really fancy, you can even add some HTML header and footer to some files like header and footer and then run it like this:

    yes "b0M" | tr -d '\n' | head -c 10G | cat header - footer | gzip -c > 10GB.gz
    



  • Ohh, SQLite isn’t “one” db. SQLite is file-based. I.e. a database in e.g. PostgreSQL (containing several tables, views, indexes, etc.) would translate to one SQLite file (e.g. mydatabase.db3 or myappdata.sqlite). And each app has its own file/database. If the file corrupts, then it’s only affecting that specific app. (However, SQLite is pretty robust.) And since these are just files, you can backup them together with the application. No need to export data or shutdown the database first.






  • On the receiving end of this controller, there’s probably just a relay shorting 2 wires from the boiler together - like the Honeywell BDR91.

    So, you could just replace that by some Shelly switch and wouldn’t have to use the proprietary radio protocol.

    On a sidenote: Those room controllers usually “learn” how long it takes to reach the target temperature (as this can be vastly different between summer and winter) and move the starting time accordingly. So they reach the target temperature at the programmed time. At least the more expensive ones do. You’d have to do something similar in your automation if you want that comfort. (Unless HA already has some code for that…)




  • In Paris, France, government officials went around the inner city area and forcefully removed all unofficial key safes from buildings. That’s how all cities should handle this.

    However, some years ago there was a news story going around about one person that owns various different places in Berlin, all listed under different names on AirBnB and that person barely visits those places as he has cleaning people do everything in between bookings. They only pocket the huge amounts of money while doing nothing. And the description to find the door key was like “find the public bicycle rack and look for the broken bike with a pink frame, the key will be under the saddle” and there were specific instructions to not talk to anyone in that building. So they definitely knew that this was kind of a grey area…


  • Yep, the one time I’ve tried to use AirBnB I had booked a nice place way in advance only to get it cancelled a few weeks later b/c the owner apparently needed it for something else. Or realised there was an event during that time where he could get more money.

    Contrary to that, when the hotel we had booked for some time during Covid realised they weren’t open for the public yet, they moved our booking to a nearby higher tier partner hotel and they then even upgraded us. You won’t get this with AirBnB, I guess.




  • mbirth@lemmy.mltoTechnology@lemmy.world*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    16
    ·
    1 month ago

    Exactly! I add a random string to each email address, too, so you can’t just guess other addresses. So, it’s usually something similar to lemmy-r4nd0m@mydomain.me. And, whenever a breach happens, I’ll generate a new random part and set that as my email address and invalidate the old one. Until the next breach. (Looking at you, LinkedIn…)



  • mbirth@lemmy.mltoTechnology@lemmy.world*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    32
    ·
    1 month ago

    My email provider allows for unlimited aliases. So, while I have 600+ email addresses, emails to them all end up in the same mailbox.

    The accounts for all the websites and services (with their specific email address) are in a KeePass database and they all have random passwords, too.

    The only small issue is when you have to contact support of some service. Then, I have to configure the specific email address in my client so they can match that to my account with them. But most email clients allow multiple sender addresses without having to fiddle with the rest of the settings.


  • I don’t remember whether it was some news article or a discussion thread. But other people also suggested this might help during therapy and/or rehab. And they had the same argument in that nobody gets harmed in creating these.

    As for uses outside of controlled therapy, I’d be afraid it might make people want the “real thing” at some point. And, as others already pointed out: Good luck proving to your local police that those photos on your laptop are all “fake”.