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.

Troubleshooting Barrier SSL Certificate Not Found

If you are encountering issues with Barrier when SSL is enabled and you are getting an error related to the SSL certificate not being found, you can follow these steps to generate and configure the SSL certificate.

Generating the SSL Certificate

You can generate a self-signed SSL certificate for Barrier using OpenSSL. Here are the steps:

Wordpress Center Align Block Widget on Footer Widget

To center align a block widget in the footer of a WordPress website, you can use custom CSS code. Here’s how you can do it:

  1. Access Your WordPress Dashboard: Log in to your WordPress admin dashboard.

  2. Navigate to the Customizer: In the dashboard, go to “Appearance” and then click on “Customize.”

  3. Open Additional CSS: Look for the “Additional CSS” option in the Customizer menu. This is where you can add your custom CSS code.

Automate Your VirtualBox VMs With Autostart

This guide will walk you through setting up a system service to automatically launch your desired VirtualBox VMs, saving you precious time and effort.

Configure Autostart Properties

  • Create a file named autostart.properties in the folder C:\Users\Admin\.VirtualBox.
  • Inside the file, define the following:
1
2
3
4
5
default_policy = deny
Admin = {
    allow = true
    startup_delay = 10
}
  • default_policy = deny: This sets the default policy to deny all autostarts.
  • Admin = { allow = true; startup_delay = 10 }: This allows the user “Admin” to start VMs with a 10-second delay.

Set System Variable

  • Create a new system variable named VBOXAUTOSTART_CONFIG and set its value to C:\Users\Admin\.VirtualBox\autostart.properties.

Install the VirtualBox Autostart Service

  • Navigate to the VirtualBox installation directory: cd "C:\Program Files\Oracle\VirtualBox"
  • Run the following commands:
1
2
.\VBoxAutostartSvc.exe install --user=Admin
.\VBoxManage.exe modifyvm "virtual-pc" --autostart-enabled on
  • Replace "virtual-pc" with the actual name of your VM you want to autostart.

Check and Start the Service

  • Use the sc command to check the service status: sc query VBoxAutostartSvcadmin-pcadmin
  • Start the service: sc start VirtualBox Autostart Service VBoxAutostartSvcadmin-pcadmin

Congratulations! Your VirtualBox VM is now set to autostart when your system boots.

Fixing SSL Issue in Nextcloud

You want to fixing two common issues related to Nextcloud SSL and an SVG error related to ImageMagick. Let’s break down these instructions into steps for clarity:

Fixing SSL Issue in Nextcloud

If you’re encountering SSL-related issues in Nextcloud, you can try the following steps:

How to Backup and Restore WordPress With Docker Compose

In this guide, we will walk you through the process of creating scripts to backup and restore a WordPress website running in Docker Compose. These scripts will help you safeguard your WordPress data and quickly restore it if needed.

Backup WordPress Volumes

Step 1: Create a Backup Script

First, you need to create a backup script. This script will use the futurice/docker-volume-backup Docker image to back up the volumes associated with your WordPress and MariaDB containers.

Trim the Whitespace Characters From a Bash Variable

In Bash, you can trim whitespace characters from a variable using various methods, as shown in your code. Here’s a breakdown of the different approaches:

  1. Remove Leading and Trailing White Spaces:

    1
    2
    
    NEW_VARIABLE="$(echo -e "${VARIABLE_NAME}" | tr -d '[:space:]')"
    # NEW_VARIABLE='aaa  bbb'

    This method uses the tr command to delete all whitespace characters, both leading and trailing, in the variable VARIABLE_NAME.

  2. Remove Only Leading White Spaces:

    1
    2
    
    NEW_VARIABLE="$(echo -e "${VARIABLE_NAME}" | sed -e 's/^[[:space:]]*//')"
    # NEW_VARIABLE='aaa  bbb  '

    Here, sed is used to remove only the leading whitespace characters from the variable.

0%