Daily Shaarli

All links of one day in a single page.

August 14, 2022

How to Setup a VPN on Android & setup OpenVPN | Step-by-step guide
thumbnail

OpenVPN is now the industry standard VPN protocol. It is the one that ProPrivacy.com recommends you use in almost all circumstances.

The main third-party OpenVPN apps for Android are OpenVPN Connect and the more fully featured and open source OpenVPN for Android (F-Droid version available). Follow the instructions below to configure OpenVPN on Android:

How to upgrade to Windows 11, whether your PC is supported or not [Updated] | Ars Technica

Supported or not, new or old, this is everything you need to know.

I’m a security reporter and got fooled by a blatant phish | Ars Technica

The most important defense is remaining humble and not falling into the mindset that we would never get pulled in by a phisher. Phishers are more sophisticated than we may think. They come up with new tricks all the time. It's only a matter of time until one of them throws us off balance.

As Cloudflare officials wrote in their disclosure: "Having a paranoid but blame-free culture is critical for security. The three employees who fell for the phishing scam were not reprimanded. We're all human, and we make mistakes. It's critically important that when we do, we report them and don't cover them up."

The Secret History of Washing Machines

The owner of the most comprehensive collection of washing machines walks us through the overlooked history of this iconic appliance.

supernova - When stars explode after running out of fuel, why are new stars born from the remnants? - Astronomy Stack Exchange

New stars are not formed from the nebulae created when a parent star explodes.

In space there is thin interstellar gas and plasma. This gas is buffeted and blown by the solar winds of stars, and the shockwaves of supernovae. The gas is mostly Hydrogen and Helium.

Stars die in two ways. The most common way is for their outer layers to be blown out into space in a fairly gentle way. This process forms a "planetary nebula" The outer layers are formed mostly of hydrogen and helium, but are enriched by other elements. Or stars can die as supernovae. These are much more energetic. Even so, much of the gas blown out is Hydrogen and Helium as it comes from the outer layers of the star, but it will be further enriched by heavier elements. There are different kinds of supernovae with different mixtures of elements.

The elements blown off of dying stars mixes with the interstellar gas, enriching it and compressing it. This mixture of gas is still mostly hydrogen and helium and hydrogen is the main fuel for stars!

If the gas is sufficiently compressed (for example by a supernova shockwave) then its own gravity can start to pull it together, ultimately forming stars.

So stars are not formed from the iron "ashes" of dead stars, but from a mixture of the original Hydrogen fuel that has never been in a star, and the outer layers of stars that are made of "unburnt" hydrogen that was blown off the star as it died. //

New stars aren't directly born in the exploded remnants of massive stars. Star formation does not occur in newly produced supernova remnants.

Instead what happens is that, over the course of millions of years, the gas in the supernova remnant is mixed into the gas that is already part of the interstellar medium, and which is composed almost entirely of hydrogen and helium. The dilution factor is large, such that after mixing, the gas contains (currently) just 1-2% by mass of elements heavier than helium.

Star formation may then take place if this gas is compressed or otherwise becomes unstable to collapse.

Highly relevant:

How can there be 1,000 stellar ancestors before our Sun?
https://astronomy.stackexchange.com/questions/16311/how-can-there-be-1-000-stellar-ancestors-before-our-sun?noredirect=1&lq=1

Parent stars of our Sun - Where are its remains?
https://astronomy.stackexchange.com/questions/22694/parent-stars-of-our-sun-where-are-its-remains?noredirect=1&lq=1

How could a supernova seed solar nebula?
https://astronomy.stackexchange.com/questions/30103/how-could-a-supernova-seed-solar-nebula

windows - Removing all ACL on folder with powershell - Stack Overflow
thumbnail

This code remove acl :

$acl = Get-Acl \\remote_server\share_folder\HAL.9000
$acl.Access | %{$acl.RemoveAccessRule($_)}
This code add administrator acl :

[#BUILTIN](./add-tag/BUILTIN) administrator

$acl = Get-Acl \\remote_server\share_folder\HAL.9000
$permission  = "BUILTIN\Administrators","FullControl", "ContainerInherit,ObjectInherit","None","Allow"
$accessRule = New-Object System.Security.AccessControl.FileSystemAccessRule $permission
$acl.SetAccessRule($accessRule)
Set-Acl \\remote_server\share_folder\HAL.9000 $acl

[#Domain](./add-tag/Domain) controller administrator

$acl = Get-Acl \\remote_server\share_folder\HAL.9000
$permission  = "DOMAINCONTROLLER\Administrators","FullControl", "ContainerInherit,ObjectInherit","None","Allow"
$accessRule = New-Object System.Security.AccessControl.FileSystemAccessRule $permission
$acl.SetAccessRule($accessRule)
Set-Acl \\remote_server\share_folder\HAL.9000 $acl

----- 

Function Remove-ACL {    
    [CmdletBinding(SupportsShouldProcess=$True)]
    Param(
        [parameter(Mandatory=$true,ValueFromPipeline=$true,Position=0)]
        [ValidateNotNullOrEmpty()]
        [ValidateScript({Test-Path $_ -PathType Container})]
        [String[]]$Folder,
        [Switch]$Recurse
    )

    Process {

        foreach ($f in $Folder) {

            if ($Recurse) {$Folders = $(Get-ChildItem $f -Recurse -Directory).FullName} else {$Folders = $f}

            if ($Folders -ne $null) {

                $Folders | ForEach-Object {

                    # Remove inheritance
                    $acl = Get-Acl $_
                    $acl.SetAccessRuleProtection($true,$true)
                    Set-Acl $_ $acl

                    # Remove ACL
                    $acl = Get-Acl $_
                    $acl.Access | %{$acl.RemoveAccessRule($_)} | Out-Null

                    # Add local admin
                    $permission  = "BUILTIN\Administrators","FullControl", "ContainerInherit,ObjectInherit","None","Allow"
                    $rule = New-Object System.Security.AccessControl.FileSystemAccessRule $permission
                    $acl.SetAccessRule($rule)

                    Set-Acl $_ $acl

                    Write-Verbose "Remove-HCacl: Inheritance disabled and permissions removed from $_"
                }
            }
            else {
                Write-Verbose "Remove-HCacl: No subfolders found for $f"
            }
        }
    }
}

Usage:

For only one folder:
Remove-ACL 'C:\Folder' -Verbose

For all subfolders:
Remove-ACL 'C:\Folder' -Recurse -Verbose

Pipe stuff
'C:\Folder 1', 'C:\Folder 2' | Remove-ACL -Verbose