• 0 Posts
  • 22 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle


  • Windows doesn’t have sudo (not yet, at least) and privileges work a bit different as even as an administrator, you may not have full rights.

    To overcome that obstacle, you’d need to run a shell as an administrator (hold CTRL+Shift, then use the start menu entry or right-click it and select run as administrator).

    Next obstacle: We have a separate drive for each partition, but no root folder.

    If we assume we’re running on a laptop or PC with a single drive and a single partition*, then it’s just

    In cmd.exe:

    del /F /S C:\
    

    In Powershell:

    Remove-Item -Recurse -Force -Path C:\
    

    When you want to delete all (mounted) partitions/drives, you need to iterate over them. (Note that’s from the top of my head, didn’t check the script if it works).

    In cmd.exe:

    REM Not gonna do that, I'm no masochist
    

    In Powershell:

    Get-PSDrive -PSProvider FileSystem | Foreach-Object {
        Remove-Item -Recurse -Force -Path "$($_.Name):\"
    }
    

    Done. Mounting additional partitions before that is left as an exercise for the reader.

    *note that even a standard installation of windows creates 3 partitions. One for the bootloader, one for the recovery system and then the system drive. Only the latter is mounted and will be deleted by this. The other two will still be intact.



  • My newest vps runs with Caddy. Works like a charm. The downside was, that I didn’t think of the automatic certificate deployment when I set everything up and it wouldn’t come up a first when I only wanted to connect locally to it, as it tried to get a certificate but the challenge failed because I hadn’t the firewall open yet. But besides that it was very smooth so far.


  • Amazon Deep Glacier is a lot cheaper for storage (but expensive for retrieval).

    I use Archive Storage in Oracle Cloud S3 for my dr backups which is their equivalent of AWS deep glacier archive. It’s quite cheap, no restore fees, inbound traffic is free and outbound traffic is only paid, when you’re using more than 10TB per month. (Also first 10 GB of S3 storage is free)


  • elvith@feddit.detoSelfhosted@lemmy.worldSelf Hosting Fail
    link
    fedilink
    English
    arrow-up
    3
    ·
    8 months ago

    It’s not the most detailed thing, but I just use a free account on cron-job.org to send a head request every two minutes to a few services that are reachable from the internet (either just their homepage or some ping endpoint in the API) and then used the status page functionality to have a simple second status page on a third party server.

    You can do a bit more on their paid tier, but so far I didn’t need that.

    On the other hand, you could try if a free tier/cheap small vps on one of the many cloud providers is sufficient for an uptime Kuma installation. Just don’t use the same cloud provider as all other of your services run in.






  • My vicious cycle: Oh no I did ssh into localhost again. Fuck, let’s do some damage control and disable SSH access to my desktop.

    Two days later: ugh, I don’t want to change rooms, I want to do this on my laptop and sit in the living room, but need something from my desktop. Why did I think it was a good idea to disable SSH access…

    Then repeat.








  • As far as I know, no one tried to clone TikTok for the fediverse. But I think the inherent problem is the algorithm. TikTok isn’t like Youtube or any other social network, where you follow people. You have an algorithm that tracks everything you do and watch and then suggests you video based on their topics, less on the people in them. I guess it’d be hard to implement, as many in the fediverse are not keen about tracking.


  • Yeah, that’s a bit of a problem in general. But in this case we’re talking about Meta. It’s one thing, if $randomCompany from outside the EU does it. As long as they’re not doing business within the EU and not specifically target the EU as a market, then they might try to get the company and fine them and may or may not succeed.

    Meta on the other hand provides service explicitly for EU citizens & companies. Not only did they localize Facebook, Instagram,… for European languages, they offer the service to sell ads for European companies. In this case, the EU can and will have a way to get them fined, I they want.