Since early 2019 the sprig
library used by helm
provides a concat
function that does exactly this.
Published directly from my personal knowledge base.
HTMX
Go check out their website, it’s incredibly good at explaining itself.
To me, a backend heavy developer, HTMX is the frontend framework I like to use because:
- It does not feel like a JavaScript framework at all, but more like an extension of the HTTP/HTML model
- It allows me to write interfaces that feel responsive and modern to users while still doing all the heavy lifting in my backend with the tools I’m used to
- It works with my mental model, which is heavily based on the request-response cycle
Handling signals with Python
My home office setup: 2023 edition
Enable system extensions on Apple silicon Mac
Think before you enable this, it could be a security risk
- Shutdown Mac
- Press and hold the power button until the Recovery Mode menu appears
- Select
Options
, then clickContinue
- From the
Utilities
menu selectStartup Security Utility
- Select your startup disk and click
Security Policy
- Choose
Reduced Security
- Check the option
Allow user management of kernel extensions from identified developers
- Choose
DigitalOcean CLI Cheat Sheet
My hiking kit: 2023 edition
1Password CLI Cheatsheet
The 1Password CLI op
works either in connection with a client app, like on the Mac,
or standalone, useful on a server.
# Login
eval $(op signin)
# Get favorites
op item list --vault "Private" --favorite
# Get a specific item
op item get <ID>
# !! Important: Sign out at the end
op signout
Some helper functions
Helpers to more easily work with the op
cli.
1login() {
eval $(op signin)
}
alias 1signout="op signout"
1search() {
term=$1
if [ -n "$2" ]
then
vault="$2"
else
vault="Private"
fi
echo "Searching for '$term' in vaut '$vault'"
op item list --vault "$vault" --long | grep "$term" --ignore-case
}
1get() {
op item get $*
}
Being a good code reviewee
Things I do to be a good code reviewee.
[Read More]yamllint error: "invalid config: ignore should contain file patterns"
Hy-Fit App by Tenswall no longer working
ArgoCD Python Client
A simple Python client to interact with ArgoCD.
[Read More]WSL2 & Keychain
The problem
If you use ssh-agent with an encrypted ssh key it does not persist when you open a new terminal window.
The solution
Use keychain
instead.
- Install
sudo apt install keychain
- Add to your shells rc file, eg.
.bashrc
or.zshrc
# Repeat this line for all keys you want to unlock and use this way /usr/bin/keychain -q --nogui $HOME/.ssh/id_rsa source $HOME/.keychain/wsl-sh
- Unlock your keys on shell startup and enjoy
My Tools
Audible book export
A list of interesting things
Git: Add only changed files
Sometimes you may want to commit only the files you have changed and not any newly created files,
this can easily be achieved by this command: git commit -a
Publish new post checklist
This is my checklist for publishing a new post on my blog:
Preparation
- Finalize the posts name and sluggify it
- Pick a image if fitting
- Create a new post with
hugo new content/posts/<slug of post>.md
- Move the draft from my current writing tool to this new file
- Fill in the generated front matter template
- If the post is ~1.000+ words enable the TOC
- Run spell-check in VSCode and fix things
Proofing
- Run local hugo server
hugo server -bind=0.0.0.0
- Wait at least an hour
- Open the locally served page on the iPad, grab a cup of tea and read it
- Make last changes and typo fixes as needed
- Place a `
GitLab: User owned projects report
Export a CSV formatted report of projects in user-namespace on a GitLab instance.
This is especially useful if you think about limiting or disabling this feature.
[Read More]