• 2 Posts
  • 43 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.



  • elvith@feddit.detoMemes@lemmy.mlc/piracy
    link
    fedilink
    arrow-up
    30
    ·
    9 months ago

    For me:

    First panel: “Is this going to be a joke about the American health care system?”

    Second panel: “Wait… there’s a slim chance, that this is going to be a meme about introverts, but I think, this is…”

    Third panel: “Yupp, that’s it, no need to check the final panel”






  • elvith@feddit.detoMemes@lemmy.mlcopium28
    link
    fedilink
    arrow-up
    11
    arrow-down
    46
    ·
    11 months ago

    Dubai isn’t necessarily a bad place per se. Like… “do you like it here outside w/o air conditioning? That’s your average winter in the Antarctic in a few years, if you don’t act.”

    Problem is, it’s not done this way…




  • Ok, so they’re not targeting “day to day command-line use”, but development in general and want to offer a way to explain error messages, generate code, etc. If done right, and the model is trained in a good way, that might work. All the problems surrounding code gen models and copyright/license issues from the generated code still apply, though.

    Especially the mention of WinDBG support and probably a way to guide you through might be a really nice feature.

    Skimming through the MS blog post, that your link mentiones, I don’t really believe in the hype of “now everyone can be a developer” it offers - I’ve seen that too often with low-code, no-code, RPA,… tools to know that it won’t really scale. There’s more to development than just to generate code…