• +43 660 1453541
  • contact@germaniumhq.com

Tutorial

Venv, a Better Virtualenv

If you like me like to create virtual environments for everything, then you'll already sold on the idea of virtualenvs. The good news is that since Python 3.3 there's a new module part of standard python: venv.


Read more

Writing Better With Vim

How are we to write better quality texts, faster? The spectrum of assistant programs that aid us in writing texts has increased dramatically. From Word itself that has an outstanding grammar checker bundled in, to grammarly, or more into the command line tools diction and vim, the choices seem endless. Since my focus is using the same writing tool for everything, I settled on Vim, and I use only 2 settings.


Read more

How to Type Keys Using Germanium

One of the most common interactions in browsers is writing keys. Germanium has a trivially simple API to type keys, that includes shortcut handling, and special keys such as . Here's how:


Read more

Assigning a Function on File Type in Vim

Ok, we have now a new function with our own code in vim. We can manually trigger it when opening a buffer. Let's make this function automatically be called whenever opening a file, and fiddle with file types.


Read more

Creating a Command in Vim

I love vim. And one of the reasons that makes it so appealing is customization. One of the coolest things is the ability to create functions. You bind the functions to commands, and you simply call the commands for the execution.


Read more

Creating Python Handlebars Helpers

If you're using handlebars in python, you're probably using pybars3. In handlebars most commands are defined by the language, such as {{if}} or {{each}}. What you need to know is that you can also write your own helper functions to extend the language. Here's how to implement a switch clause:


Read more

Kubernetes Ingress Patching With Ansible

If you execute the default bare metal installation of an Nginx Ingress server you'll find out that it's actually not listening on the "normal" 80/443 ports, but rather on some client ports. What's worse is that there's a rather small limit for the proxying, so if you're exporting a binary registry, and you want to publish binaries from outside the cluster, you're in trouble. Here's how to fix this.


Read more

Allowing Docker Containers Inside the Kubernetes Network

Let's assume you're spinning up pure docker containers in your Kubernetes cluster. Not pods, but docker containers. For example you're using docker.inside in your Jenkins builds, and your Kubernetes is hosting the Jenkins instance. You'll notice that your docker container can't access services in your cluster.


Read more

Python Unit Testing

Python has bundled into it a rather decent testing framework, that resembles a lot JUnit, named unittest. This is packaged in the core python, and it's simple to use. While I'm a big fan of Behave, sometimes, especially if testing low-level APIs, it's less verbose to just write a core python unit test. In this article we explore how to create our first test.


Read more

pa11y Accessibility Testing With Docker and Jenkins

Testing a website for accessibility might prove challenging. Fortunately with the advent of some opensource tools, it's easier to test for problems, but automating this is a challenge. In this article we'll explore how to setup a Jenkins pipeline that runs pa11y - a popular opensource accessibility checker - inside a docker container.


Read more