#quick-tips
Tag
-
Using multiple config files with kubectl and other Kubernetes tools
If you want to point tools like
kubectl
to a config file other than~/.kube/config
you can set the environment variableKUBECONFIG
. But did you know thatKUBECONFIG
behaves sort of like a path, andkubectl
will load all the config files it finds? -
How to highlight lines in a Hugo code block
Sometimes when writing code in a blog post I want to emphasize a couple of lines in particular. Today I found out that Hugo has really nice syntax to do this in a regular markdown code-fence.
-
How to get typer to show help by default
I love using typer for creating CLI tools in Python. It makes creating complex trees of subcommands really straightforward.
-
Quick Tip - git delete merged branches
Here’s a quick line to run in your terminal to delete all local git branches which have already been merged into master.
-
Quick Tip - em vs rem
em
andrem
are used in CSS to set a size value relative to afont-size
. This is useful in many situations such as increasing the font size relatively across your whole website by changing one value or adding padding which is larger or smaller depending on the font size.