Recent Posts

Featured image for Setting up Collabora Online CODE on Nextcloud

Setting up Collabora Online CODE on Nextcloud

Collabora Online is an open-source office suite that can be integrated with Nextcloud to provide collaborative document editing features. In this guide, we will walk you through the process of setting up Collabora Online CODE on Nextcloud using Docker.

Please note that this guide assumes you have Docker installed on your server and have Nextcloud already set up. If not, make sure to install Docker and set up Nextcloud before proceeding.

Featured image for How Mirror Gitlab to Github or GIT to GIT

How Mirror Gitlab to Github or GIT to GIT

To mirror a GitLab repository to GitHub or to mirror one Git repository to another Git repository, you can follow the steps outlined in the provided code snippet. Here’s a breakdown of the process:

  1. Clone the GitLab Repository as a Mirror:

    bash
    1
    
    git clone --mirror git@your-gitlab-site.com:username/repo.git

    This command clones the GitLab repository with the --mirror option, which is similar to --bare but also copies all refs as-is. It’s useful for creating a full backup or moving the repository.

  2. Change into the Newly Created Repository Directory:

    bash
    1
    
    cd repo

    Navigate to the directory created by the previous git clone command.

  3. Push to GitHub as a Mirror:

    bash
    1
    
    git push --no-verify --mirror git@github.com:username/repo.git

    Push the mirrored repository to GitHub using the --no-verify option to skip any pre-push hooks. This command effectively mirrors your GitLab repository on GitHub.

  4. Set Push URL to the Mirror Location:

    bash
    1
    
    git remote set-url --push origin git@github.com:username/repo.git

    This step sets the push URL for the origin remote to the GitHub repository. It ensures that future pushes will go to the correct GitHub location.

  5. Periodically Update the Repository on GitHub from GitLab:

    bash
    1
    2
    
    git fetch -p origin
    git push --no-verify --mirror

    Use these commands to periodically update the GitHub repository with changes from GitLab. The git fetch -p command prunes deleted references, and the subsequent git push --no-verify --mirror command pushes all the updated references to GitHub.

Featured image for Cant Open Port From Localhost To WSL Port On Windows

Cant Open Port From Localhost To WSL Port On Windows

Opening Ports from Localhost to WSL in Windows using WSLHostPatcher

When working with Windows Subsystem for Linux (WSL), you may encounter situations where you need to open a port from your localhost to a port in your WSL instance. This can be useful for various tasks, such as running web servers or accessing services within your WSL environment. One way to achieve this is by using a tool called WSLHostPatcher.

Featured image for Adding `data-bs-toggle` and `data-bs-target` Breaks Link in Bootstrap 5

Adding `data-bs-toggle` and `data-bs-target` Breaks Link in Bootstrap 5

In Bootstrap 5, when you try to add data-bs-toggle and data-bs-target attributes to a link (<a> element) within a navigation bar (<nav> element), you might encounter an issue where the link doesn’t work as expected. This can be frustrating, but it can be resolved with a few adjustments to your code.

The data-bs-toggle and data-bs-target attributes are typically used for toggling Bootstrap components like dropdown menus and collapsible elements. When you add these attributes to a link, they can interfere with the link’s default behavior, preventing it from functioning correctly.

Featured image for Postman Example

Postman Example

Introduction

Postman is a popular API testing tool that allows developers to automate and validate API responses efficiently. This guide provides examples of how to use variables, write tests, handle error responses, and perform asynchronous requests in Postman.