Skip to content

Instantly share code, notes, and snippets.

View ccoVeille's full-sized avatar
👨‍🍼
Just got a new baby

ccoVeille ccoVeille

👨‍🍼
Just got a new baby
View GitHub Profile
@ccoVeille
ccoVeille / rmw.fish
Created March 20, 2024 15:41
fish autocomplete for github.com/theimpossibleastronaut/rmw 0.9.2
# fish autocomplete for rmw
# put this file in ~/.config/fish/completions/rmw.fish
# and that's it
complete rmw -l version -d 'Display rmw version'
complete rmw -s h -l help -d 'display help'
complete rmw -s v -l verbose -d 'Explain what is done'
complete rmw -s R -s r -l recursive -d 'Recursively remove subdirs'
complete rmw -s i -l interactive -d 'Prompt for removal (not implemented)'
complete rmw -s f -l force -d 'Never prompt for removal'
@ccoVeille
ccoVeille / keychron_linux.md
Created January 22, 2023 17:38 — forked from andrebrait/keychron_linux.md
Keychron keyboards on Linux + Bluetooth fixes

Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.

Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.

Make Fn + F-keys work

Keychron Keyboards on Linux use the hid_apple driver (even in Windows/Android mode), both in Bluetooth and Wired modes. By default, this driver uses the F-keys as multimedia shortcuts and you have to press Fn + the key to get the usual F1 through F12 keys.

@ccoVeille
ccoVeille / gist:e356db04cb96cb55716ac937031d2e0c
Created December 31, 2022 16:26
Musicbrainz picard configuration for labeling album tracks per year
$if2(%albumartist%,%artist%)/$if(%originalyear%, $year(%originalyear%) - ,$if(%date%, $year(%date%) - ,))$if2(%albumartist%,%artist%) - $if($ne(%albumartist%,),%album%/,)$if($gt(%totaldiscs%,1),%discnumber%-,)$if($ne(%albumartist%,),$num(%tracknumber%,2) ,)%artist% - %title%