To customize k9s use the skins from catppuccin or the ones k9s supplies OUT="${XDG_CONFIG_HOME:-$HOME/.config}/k9s/skins" mkdir -p "$OUT" curl -L https://github.com/catppuccin/k9s/archive/main.tar.gz | tar xz -C "$OUT" ... read more →
I started deploying a website to Cloudflare on a branch called pages. Similar to one of the GH Pages deployment patterns. But when my CI was pushing the branch I couldn't see it locally... git fetch -a wasn't pulling any new branches, and git branch ... read more →
git config --add --local core.sshCommand 'ssh -i <<<PATH_TO_SSH_KEY>>>' read more →
I've been using paperless-ngx to manage all my documents, but every once in a while I'll get a .docx file to deal with... Turns out Libreoffice has a headless mode a pdf converter built-in! libreoffice --headless --convert-to pdf /path/to/file.docx ... read more →
ffmpeg -i input.mp4 -map 0 -c:v libx264 -vf format=yuv420p -c:a copy output.mp4 read more →
I was getting (publickey denied) when trying to push to GH using ssh. When I tested the connection I saw that a bunch of keys in ``~/.ssh/ were being attempted ✗ ssh [email protected] -vv ... debug1: Will attempt key: /home/nic/.ssh/id_rsa debug1: W ... read more →
Playing around with Modal Labs One of the first things I tried was a regular cron job... @stub.function( schedule=modal.Period(minutes=59), secret=modal.Secret.from_name("my-dummy-secret") ) def say_hi(): now = time.ctime() sec ... read more →
I'm playing with my ansible playbook in a remote tmux session, and I'm no wiz so I don't know the ins and outs, but I can't scroll up to get any console log output that's not already visible on my screen. So I'm starting to end my commands with | l ... read more →
Logging instead of printing I am trying to adopt logger.debug instead of print but ran into a confusing thing in ipython during Advent of Code... I riddled by script with logger.debug (yes after setting logging.setLevel('DEBUG')) but in ipython none ... read more →
mkdir s{1..10} will make directories s1, s2, ... s10 in one command! read more →