Tech
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.
DATE 20240927
We often need to run our script avoiding certain situations like the followings.
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.
DATE 20240807
Arch linux installation is not that hard if you do it simple as if:
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.
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.
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.
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.
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.
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 focusmon
functions in dwl.c
file.