Avatar

Links

michael-sabrnak-swi (corporate)
MyKEms (personal)
@rss
  • This is quick how-to share CC2652RB over network to zigbee2mqtt (Home Assistant) via ser2net. This tutorial is for RaspberryPi.

    In this tutorial ser2net will be named as ser2net2. To not have collision in case you will install older version from repository via apt install ser2net. Also it will listen on port 3452 in configuration below.

    home assistant ser2net slae.sh zigbee2mqtt Created Fri, 24 Dec 2021 15:08:39 +0000
  • If your application can’t start anymore on port 80 or you see HTTP Error 404. The requested resource is not found. it looks like http.sys placed reservation of port 80 and your application can’t start anymore.

    Created Sun, 12 Sep 2021 16:47:27 +0000
  • If you initialize Kubernetes cluster with kubeadm check with the network team if the ranges you provide to kubeadm with – pod-network-cidr and – service-cidr does not overlap with intranet network ranges. Otherwise, pods/services won’t operate well and you might see anomalies in your Kubernetes environment.

    k8s kubeadm Created Thu, 19 Aug 2021 08:08:56 +0000
  • I was solving issues during large docker layers being uploaded to the SaaS Artifactory docker repository. Docker failed on large layers with the following error message:

    artifactory aws lb docker nginx Created Tue, 17 Aug 2021 11:57:30 +0000
  • If you use Cloudflare proxy servers to secure your web services I recommend you to allow external traffic only from Cloudflare. Otherwise you expose your web servers to attackers from the external network.

    Created Wed, 28 Jul 2021 10:15:04 +0000
  • Ansible/Packer over WinRM can experience UAC Elevated rights issues if logged over the network.

    To fix the issue:

    # Set LocalAccountTokenFilterPolicy to 1
    $token_path = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System"
    $token_prop_name = "LocalAccountTokenFilterPolicy"
    $token_key = Get-Item -Path $token_path
    $token_value = $token_key.GetValue($token_prop_name, $null)
    if ($token_value -ne 1) {
        Write-Host "Setting LocalAccountTokenFilterPolicy to 1"
        if ($null -ne $token_value) {
            Remove-ItemProperty -Path $token_path -Name $token_prop_name
        }
        New-ItemProperty -Path $token_path -Name $token_prop_name -Value 1 -PropertyType DWORD > $null
    }
    

    How UAC remote restrictions work

    To better protect those users who are members of the local Administrators group, we implement UAC restrictions on the network. This mechanism helps prevent against loopback attacks. This mechanism also helps prevent local malicious software from running remotely with administrative rights.

    Created Tue, 01 Jun 2021 11:12:30 +0000
  • In case you want to get maximal value without rounding/flooring – to be exact you should not use Measure-Object. You need to enumerate array (which is also faster).

    Created Tue, 25 Feb 2020 19:52:08 +0000
  • If you experience your Windows 10 machine wakes up from sleep you can disable this behavior following this manual.

    • Right click to Start > Run
    • Type: powercfg.cpl > OK
    • Choose you active plan (in this case it’s High performance) and click to Change plan settings
    • Click to Change advanced power settings
    • Navigate to Sleep > Allow wake timers > Disable (in case you can’t change settings you need to click in top to “ Change settings that are currently unavailable “)

    TIP:

    Created Sun, 09 Feb 2020 14:18:07 +0000
  • In case your Windows Server 2012/R2 does not have access to the internet to verify MAK key you will need to do phone activation. Unfortunately you can’t do this so easily via GUI. But via CMD you can.

    Created Mon, 01 Jul 2019 13:54:40 +0000
  • If you need to verify that Windows Computers/Servers are activated against KMS server by manually specified KMS server and port use following PowerShell command:

    Created Thu, 27 Jun 2019 11:13:43 +0000