Min Soe Han

LegalBusinessElse


Tech


git: pre-received hook declined

DATE 20241013

If you used git config credential.helper store for many repos and multiple users, you might encounter the error of the image saying that

! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'https://codeberg.org/minsoehan/pages.git'

The quick solution, although it cannot be recommended as proper solution, is to remove the following from your ./.git/config file in your repo.

READ MORE


Handling Script's Behaviors

DATE 20240927

We often need to run our script avoiding certain situations like the followings.

  1. Avoiding running a script as ROOT.
  2. Avoiding runnign a script in background.
  3. Avoiding running a script if the script is already running.
  4. Avoiding unnecessary remains exist.

READ MORE


Mount/Unmount mountpoint that has user,noauto options in /etc/fstab

DATE 20240817

Mounting data partition to a mountpoint outside directory structure in /etc/fstab is a bit complicated. By default, the partitions are auto mounted to their mountpoints respectively at boot. But the problem is that, the owner of the mountpoint would be root and being without write permission for normal user because mount command was executed by root. On the other hand, the line in /etc/fstab that has user,noauto options is not auto mounted at boot. It can be mounted later as normal user by just running the following.

READ MORE


Installing Arch Linux

DATE 20240807

Arch linux installation is not that hard if you do it simple as if:

READ MORD


mshdiff for generating filename.diff file for patching

DATE 20240926

If you need to compare files between two directories and generate a patch file, the following script can help you achieve this efficiently. This guide will explain the script's functionality and how to use it.

READ MORE


dmmsh-wlr for managing outputs in Wayland using wlr-randr

DATE 20240729

Managing outputs in Wayland is smooth and easy by using wlr-randr while some compositors such as sway and hyprland have their own tools to manage outputs. See: sway-output(5) man page and Monitors - Hyprland Wiki respectively.

READ MORE


Learning pw-dump

DATE 20240730

The pw-dump program produces a representation of the current PipeWire state as JSON, including the information on nodes, devices, modules, ports, and other objects.

READ MORE


dashinet

DATE 20240729

This is a single dash script to manage WiFi Connections. It can connect to new WiFi and can manage known connections such as activating, deactivating, deleting, checking password of a ever connected (known) connection.

READ MORE


Effortless and Speedy Highlighting with Highlight.Hohli.com

DATE 20240729

When it comes to blogging, especially for those who share coding tutorials, the presentation of code snippets is crucial. Clean, highlighted code can make a huge difference in readability and professionalism. Fortunately, there is an incredibly efficient and fast way to achieve this: using https://highlight.hohli.com.

READ MORE


warpcursor in dwl

DATE 20240724

dwl is a compact, hackable compositor for Wayland based on wlroots. It is intended to fill the same space in the Wayland world that dwm does in X11, primarily in terms of functionality, and secondarily in terms of philosophy. To get cursorwarp function works, warpcursor patch is required. However, the better way is to insert the following snippets of codes in the focusclient and focusmon functions in dwl.c file.

READ MORE