• 0 Posts
  • 75 Comments
Joined 2 years ago
cake
Cake day: June 12th, 2023

help-circle








  • When I was a student, I did an internship in a chemistry lab. On one of the days, someone brought in some samples of skunk secretion for an analysis.

    Everyone was like Not again i dont want that, let the intern do this!

    I thought how bad could it be?. Turns out really bad. It days to stop that smell. And I mostly handled the sealed phials and only opened a single one for a gas chromatography without spilling something…


  • 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.






  • Not quite. If they had overlooked a few accounts, they’d probably not even implemented that function. They’d just said "well, if you forget your password - or need to change it - you need to use the forgot password workflow that sends an email. Everyone without an email Adresse associated with their account would be SOL.

    Since they implemented it, they are aware of such accounts. But since “providing freely any email address for a password reset” makes absolutely no sense, this should only work for this special case - accounts without an associated email address.

    Whether it’s only done for unlocking accounts, whether this would have also worked when clicking on “Forgot Password” or whether this account lock and unlocking workflow might even be intentional to associate an email address to such accounts, is unknown (to me)


  • elvith@feddit.detoReddit@lemmy.worldReddit Email Grab
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    1 year ago

    I think newer accounts can only be created, when providing an email address. There may be some old accounts that don’t have an email address associated. So, in most cases, you’d just be able to restore the account if you have access to both the account password and the email address. This breaks apart, if there’s no email address associated so I think they provided this way of recovery although it doesn’t improve security since it only applies to very few accounts?


  • 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)