Skip to content

Instantly share code, notes, and snippets.

View akhilman's full-sized avatar
☮️
Peace and Love

AkhIL akhilman

☮️
Peace and Love
View GitHub Profile
@akhilman
akhilman / webdav-nginx.conf
Last active March 12, 2024 01:27
Fixes for nginx's webdav to work with gvfs clients.
# Define lua functions
init_by_lua_block {
function is_dir(path)
local f = io.open(path, "r")
if not f then
return false
end
local ok, err, code = f:read(1)
f:close()
return code == 21
@akhilman
akhilman / README.md
Last active March 23, 2024 14:08
IR remote config for X96 TV box
@akhilman
akhilman / README.md
Last active August 16, 2024 05:09
Fix Arch Linux'es snapper for easy rollbacks

Snapper's rollbacks work fine in Arch after a few tweaks:

  1. Install snapper, grub-btrfs, snap-pac;
  2. Enable grub-btrfsd.service;
  3. Add the hook grub-btrfs-overlayfs at the end of HOOKS in /etc/mkinitcpio.conf;
  4. Remove the subvol=... option from root's fstab entry;
  5. Remove code that adds rootflags=subvol=... from /etc/grub.d/10_linux;
  6. Rebuild the grub configuration with sudo grub-mkconfig -o /boot/grub/grub.cfg;
  7. Take a snapshot with snapper create;
  8. Rollback to the just created snapshot with snapper --ambit classic rollback ;