Dimas Maulana

Dimas Maulana

Developer

Welcome to my website! I am a developer with a current focus on React and Go. My experience encompasses both front-end and back-end development, enabling me to design and develop seamless and efficient applications.

Go HTML Template Active Nav-Link Bootstrap

In the provided HTML code snippet, it appears to be a part of a Bootstrap navigation menu that is using Go’s HTML template syntax to conditionally add the “active” class to a navigation link based on a condition. In this case, it is checking whether the current page’s title is equal to “Home” and adding the “active” class if the condition is true.

Let me break down the code for you:

Check Whenever Locked or Not via SSH on Windows

If you’re looking to determine whether a Windows machine is locked or not via SSH, you can use PowerShell commands to achieve this. The Get-Process command with the logonui argument can be used to check the status of the “LogonUI” process, which is responsible for the Windows login screen. If the “LogonUI” process is running, it typically means that the user is logged in and the machine is not locked. If the process is not running, it might indicate that the machine is locked or at the login screen.

Lock Windows 11 Remotely Using Sleepwatcher Mac

In this guide, we will walk you through the process of remotely locking a Windows 11 computer from your Mac using sleepwatcher. This will require SSH access to your Windows machine configured with a public key instead of a password. Follow these steps to set up remote locking:

Prerequisites

  1. SSH Configuration: Ensure that you have SSH access to your Windows 11 computer from your Mac, and it is set up to use a public key for authentication instead of a password. If you haven’t set up SSH with public key authentication, you can find guides online for this process.

Setting Up Windows SSH Server With Public Key Authentication

In this guide, we will walk you through the steps to set up an SSH server on a Windows system and configure it to use public key authentication instead of a password. This enhances security by eliminating the need for password-based access and relying on cryptographic keys for authentication.

Prerequisites

Before you start, ensure you have the following:

Fixing the Backtick Key Issue With Barrier From Mac Server to Windows 11 Client

If you’re experiencing issues with the backtick key (`) not working when using Barrier to connect a Mac Server to a Windows 11 Client, you’re not alone. This can be a frustrating problem, but fortunately, there is a solution.

Problem Description: When using Barrier, a software KVM (keyboard, video, mouse) switch, to control your Windows 11 Client from a Mac Server, the backtick key (`) might not function as expected. This issue can disrupt your workflow, especially if you rely on this key for tasks like entering command-line commands or writing code.

Add -- - After Tabs on VSCODE Using Regex-

To add “- " after tabs on Visual Studio Code (VSCode) using regex, you can follow these steps:

  1. Open VSCode.

  2. Press Ctrl + H (or Cmd + H on macOS) to open the Find and Replace panel.

  3. In the Find input box, input the following regular expression to match tabs at the beginning of each line:

    (^\t*)

    Make sure to enable the “Use Regular Expression” option by clicking the .* icon in the Find panel.

0%