Skip to content

Instantly share code, notes, and snippets.

@arun54321
arun54321 / mozjpeg_build
Last active September 28, 2022 04:05
Compiling mozjpeg on fedora with yasm
cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_INSTALL_LIBDIR=/usr/local/lib -DENABLE_STATIC=FALSE -DPNG_SUPPORTED=TRUE -DWITH_JPEG8=TRUE . -DCMAKE_ASM_NASM_COMPILER=/usr/bin/yasm
sudo make install
@arun54321
arun54321 / _etc_gdm_PreSession_Default
Created August 1, 2022 11:24
set rgb range full on external display on wayland.
#!/usr/bin/sh
#
# Note that any setup should come before the sessreg command as
# that must be 'exec'ed for the pid to be correct (sessreg uses the parent
# pid)
#
# Note that output goes into the .xsession-errors file for easy debugging
#
PATH="/usr/bin:$PATH"
/usr/bin/proptest -M i915 -D /dev/dri/card0 103 connector 98 1
@arun54321
arun54321 / ntfs3 driver & no-root mount.md
Last active September 21, 2024 04:07
ntfs3 driver & no-root mount [Tested on Fedora 35]

/etc/udisks2/mount_options.conf

[defaults]
btrfs_defaults=noatime,autodefrag,compress=zstd
ntfs3_defaults=uid=1000,gid=1000,noatime
ntfs3_allow=uid=1000,gid=1000,prealloc

/etc/udev/rules.d/ntfs3_by_default.rules

  1. edit /etc/modules-load.d/i2c.conf

    i2c-dev
    
  2. edit /etc/udev/rules.d/98-ddc.rules

    KERNEL=="i2c-1", SUBSYSTEM=="i2c-dev", GROUP="ddc", MODE="0660"
    
  3. $ sudo usermod -a -G ddc username