Skip to content

Instantly share code, notes, and snippets.

View folliehiyuki's full-sized avatar
🐢
Learning

Hoang Nguyen folliehiyuki

🐢
Learning
View GitHub Profile
@folliehiyuki
folliehiyuki / init.lua
Last active January 22, 2024 06:43
River wayland compositor configuration in lua5.4
#!/usr/bin/lua5.4
--[[
NOTE:
- execp() needs 'lua-posix' package
- bitwise operands for tag mappings need Lua version >= 5.3
--]]
@folliehiyuki
folliehiyuki / README.md
Created December 9, 2020 16:56 — forked from gbrlsnchs/README.md
Void Linux Installation Guide (UEFI + chroot + brtfs + LUKS-encrypted root and swapfile)

Installation guide for Void Linux with LUKS-encrypted btrfs root

Introduction

In this guide you will find:

  • btrfs with Zstandard compression
  • LUKS-encrypted root and swapfile
  • GRUB with UEFI

You will not find:

  • Instructions for file systems other than btrfs
1) Install the pipewire package and this minimal set of required plugins:
libspa-alsa-0.3.17_1 # The alsa backend
libspa-audioconvert-0.3.17_1
libspa-audiomixer-0.3.17_1 # For mixing multiple streams
(these should be eventually added as dependencies to pipewire, basic functionality doesn't work without them)
2) Start the pipewire server as user:
$ pipewire
This is enough to play audio with `pw-play song.wav`
@folliehiyuki
folliehiyuki / gnupg_permission.sh
Created November 30, 2020 17:06
Correct gnupg permission
#!/bin/bash
# This fixes the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error while using Gnupg
# Make sure that the .gnupg directory and its contents is accessibile by your user.
chown -R $(whoami) "${GNUPGHOME:-$HOME/.gnupg}/"
# Also correct the permissions and access rights on the directory
chmod 600 "${GNUPGHOME:-$HOME/.gnupg}/*"
chmod 700 "${GNUPGHOME:-$HOME/.gnupg}"
@folliehiyuki
folliehiyuki / linux_tips.md
Last active February 2, 2023 10:06
Notes for my Linux installation

Configurations

Kernel modules

# /etc/modprobe.d/blacklist.conf
blacklist radeon # nvidia, i915, depends on hardware specs
blacklist iTCO_wdt # who wants watchdog on desktop tbh? (except shutdown might not work properly xD)
blacklist iTCO_vendor_support # watchdog