Skip to content

Instantly share code, notes, and snippets.

View fathulfahmy's full-sized avatar

Fathul Fahmy fathulfahmy

View GitHub Profile
@fathulfahmy
fathulfahmy / fix-blurry-electron-linux.md
Last active September 28, 2025 05:58
Fix blurry electron applications on Linux

How to fix blurry Electron applications on Linux

  1. Go to applications directory
cd
cd /usr/share/applications
  1. Edit .desktop file
@fathulfahmy
fathulfahmy / windows11-legacy-right-click.md
Last active September 28, 2025 05:46
Set Windows 11 right-click show more as default behavior

How to Set Windows 11 Right-click Show More as Default Behavior

  1. Run Command Prompt as Administrator
  2. Copy and paste
reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
  1. Press enter
  2. Reboot
@fathulfahmy
fathulfahmy / setup-paperback.md
Last active September 28, 2025 05:45
Setup Paperback on iOS
@fathulfahmy
fathulfahmy / hide-navbar.js
Last active September 28, 2025 05:44
Hide navbar on scroll
function hideNavbar() {
if (window.innerWidth >= 1024) {
console.log("desktop");
var prevScrollpos = window.scrollY;
window.onscroll = function () {
var currentScrollPos = window.scrollY;
if (prevScrollpos > currentScrollPos) {
navbar.style.top = "0";
@fathulfahmy
fathulfahmy / preview-image.js
Last active September 28, 2025 05:44
Add file input image preview
function previewImage() {
const dropZone = document.getElementById("drop-zone");
const fileInput = document.getElementById("file-input");
const img = document.getElementById("preview-image");
let p = document.getElementById("drop-text");
if (fileInput) {
fileInput.addEventListener("change", function () {
const clickFile = this.files[0];
if (clickFile) {
@fathulfahmy
fathulfahmy / run-lenovo-conservation-mode-linux.md
Last active September 28, 2025 05:42
Toggle Lenovo/Legion Conservation Mode on Linux

How to toggle Lenovo conservation mode on Linux

  1. Open terminal
  2. Turn conservation mode ON
echo 1 > /sys/bus/platform/drivers/ideapad_acpi/VPC2004*/conservation_mode
  1. Turn conservation mode oFF
echo 0 > /sys/bus/platform/drivers/ideapad_acpi/VPC2004*/conservation_mode
@fathulfahmy
fathulfahmy / fix-update-grub-command-not-found.md
Last active September 28, 2025 05:43
Fix update-grub command not found on Linux

How to fix update-grub command not found on Linux

Prerequisites

sudo dnf install shim os-prober efibootmgr grub2 grub2-efi

Method 1: Use grub2-mkconfig to update grub

@fathulfahmy
fathulfahmy / fix-davinci-resolve-symbol-lookup-error.md
Last active September 28, 2025 05:38
Fix Davinci Resolve 18 symbol lookup error on launch

Caution

./resolve: symbol lookup error: /lib64/libpango-1.0.so.0: undefined symbol: g_string_free_and_steal

How to fix Davinci Resolve 18 symbol lookup error

  1. Copy libglib-2.0 to Davinci Resolve library directory
cd
sudo cp /lib64/libglib-2.0.* /opt/resolve/libs/
@fathulfahmy
fathulfahmy / crkbd-programming-keyboard.md
Last active September 21, 2025 22:37
40 keys split keyboard layout made with programming in mind

Example 1:

image image image

Example 2:

layout0 layout1 layout2

@fathulfahmy
fathulfahmy / xfce-i3-guide.md
Last active November 2, 2025 07:58
A guide on how to setup XFCE with i3wm

How to XFCE with i3WM

Download

  1. Download XFCE Distribution
  2. Download i3 only (i3 status i3 lock dmenu is not needed)

Warning

Do not install preconfigured or distributed i3wm to avoid conflicts with XFCE settings
✅ Do sudo dnf install i3 --setopt=install_weak_deps=False
❎ Don't sudo dnf install i3 desktop or sudo dnf install @i3-desktop-environment