Notes: Intermediate Bicep

Today I finished the Intermediate Bicep module. Here are my notes. Child and Extension You can also use Bicep to refer to resources that were created outside the Bicep file itself. For example, you can refer to resources that your colleagues have created manually by using the Azure portal, or from within another Bicep template or module, even if they’re in a different resource group or subscription. By using these features of Bicep, you can unlock the ability to create powerful templates that deploy all aspects of your Azure infrastructure. ...

March 14, 2023 Ā· Mischa van den Burg

Notes: Fundamentals of Bicep

I’ll be working with Bicep during my next contract, so I’m working through the Bicep modules on Microsoft Learn to prepare. I must sayĀ that these modules are particularly helpful. They are well structured and they provide you with free sandbox environments to practice deploying the templates you create. Why Bicep? Resources in Azure are deployed by the Azure Resource Manager (ARM). These resources are JSON objects under the covers, and ARM templates are a way to generate these JSON objects. However, JSON is not really meant to be edited by humans, and the ARM templates are not very suitable for editing either. Thus, Bicep was developed to allow for a better editing experience and better readability and reusability. ...

March 13, 2023 Ā· Mischa van den Burg

Learning Go Day 1: Notes

The CTO of my new company recommended the Udemy course ā€œGo: The Complete Developer’s Guide (Golang)ā€. I started today and here are some notes I made. Hello World in Go We start by writing a Hello World and studying all the elements. package main import "fmt" func main() { fmt.Println("Hello World!") } How do we run code? go run main.go runs the program go build main.go compiles it to an executable ...

February 28, 2023 Ā· Mischa van den Burg

I started to learn Go!

For month’s I considered to learn Go, and today I finally started. I doubted for a long time, because I figured it would be better to dive deeper into Python. However, when I reflected on it, I realized I’m able to do the things I want to do in Python. I can create scripts to manipulate data, and I can string different tools and libraries together if I need to. So how deep do I actually need to go as a DevOps Engineer? ...

February 27, 2023 Ā· Mischa van den Burg

Controlling Apple Music with hotkeys from anywhere on MacOS

I’m a little obsessed with controlling everything with my keyboard. That’s why I loved AwesomeWM so much on my Arch Linux setup, I hardly used my mouse anymore. One thing I loved about my setup was the ability to control my music from the keyboard from anywhere. This is a feature I picked up from the awesome-copycats theme for AwesomeWM. This was one of the first things I missed when I made my switch to MacOS. ...

February 24, 2023 Ā· Mischa van den Burg

Using parameter expansion as search and replace

Last modified: 2023-01-10 In this evening’s studies I came across this bash script in a tutorial by Rob Muhlenstein: !#/bin/bash echo -e ${PATH//:/\\n} I could not make heads or tails of all these slashes and curly braces, since the output clearly indicated that search and replacement was being performed. I’m used to the sed / vim syntax: s/foo/bar After some research I learned that ā€˜//’ is a global search and replace syntax of several text processing programs. It is known as parameter expansion in bash. ...

January 10, 2023 Ā· Mischa van den Burg

Automatically adding my recent blog posts to my GitHub Readme

My friend gave me a nice tip for customizing the readme on my personal GitHub page. I discovered there is a whole world of plugins and customizations out there. I set up this one for my GitHub homepage. It uses a workflow to update the readme in my personal GitHub repo with the most recent posts from this blog, based on the RSS feed. Neat! It was very easy to set up. If you don’t have your own blog, you could configure it with a different RSS feed. Hacker News for example. ...

January 9, 2023 Ā· Mischa van den Burg

Back to Bas(h)ics: leaving zsh for now

I’ve used zsh for nearly two years now. I have a custom setup with autocompletion and a good looking prompt. Recently I’ve been diving deeper into bash scripting, following tutorials by rwxrob. He emphasizes all the time that it is much better to stick to bash instead of zsh. Advantages of using bash: the default Linux shell available on any Linux system full documentation available anywhere at all times with man bash free software less dependent on external plugins and configurations more portable practice by working on the command line The fact that working on the commandline is already coding convinced me to leave my beloved customized prompt behind (for now) and go back to the basics. ...

January 8, 2023 Ā· Mischa van den Burg

Working on the command line is already coding

Rob Muhlenstein makes an interesting point that using bash on the command line is already coding. When you are running commands in the terminal, you are coding one line at a time. When you put these commands in a file you have a bash script. Therefore, he argues that bash should be your first language. I think this is such an interesting point. I’ve been using Linux and working on the command line for years but it never dawned on me that I, in fact, was coding while working on the command line. However, when I was writing bash scripts, I did consider myself to be coding. There is literally no difference. A bash script is just a string of commands that you would enter manually anyway. ...

January 5, 2023 Ā· Mischa van den Burg

What is a SDK?

A software development kit (SDK) is a set of tools provided by the manufacturer of (usually) a hardware platform, operating system (OS), or programming language. SDKs contain all the tools you need to get started. They typically contain a compiler, a debugger and an API. But they can also contain documentation and testing tools.

January 3, 2023 Ā· Mischa van den Burg