I have list [True, False, False, True] and another list [1, 2, 3, 4] and a use case where I want to filter list 2 based on list 1 to remove values that line up with the element False in list 1.... so the outcome will be [1, 4]. list(compress(list2, ... read more →
TL;DR As the nextcloud docs say... if you want to write to an external volume that location has to be writeable by the user/group www-data on the host system... so if that makes sense to you then this TIL probably isn't a ton of value.. if not howev ... read more →
In vim G clog % does a git clog {current file}. You get every commit that the target file is apart of (so there might be info in those commits unrelated) read more →
As I was cleaning up my NAS recently I noticed that I ran out of storage even though my disk usage looked pretty low... turns out I was keeping a mega-ton of ZFS snapshots and due to my own ignorance at the time didn't realize the storage cost of th ... read more →
From my daily driver Ubuntu machine I often open nautilus, dolphin, etc. and delete a file here or there on my NAS... turns out Ubuntu sends thse file to .Trash-100 ON THE NAS so I'm effectively just moving that file and not freeing up any space... ... read more →
I started my homelab journey being super naive about ZFS and how to manage the filesystem... that bit me in the butt when transfering a ton of files out of folders and into datasets because ZFS is copy on write so I was essentially duplicating my st ... read more →
:PlugSnapshot, :w ~/dotfiles/nvim/snapshot.vim... keep your config safe with git! read more →
I've had Plug 'hrsh7th/cmp-path' in my plugins for ever but didn't notice until recently that I wasn't getting any filepath completion in vim! Fuller setup instructions below the TLDR TL;DR Turns out I need to not be a dope and configure nvim-cmp to ... read more →
I just started using FastAPI for a home project and needed to pass back a dynamic number of values from a form rendered with jinja... Dynamic Values The jinja templating for rendering HTML based on something like a python iterable is nice and easy ... read more →
I'm currently working on a self-hostable wish list app using FastAPI so we can finally drop Amazon forever. (The lists funcionality has been super handy for sharing holiday gift ideas with the famj!) FastAPI FastAPI is an amazing framework for quick ... read more →