kubectl basics

Here are some of the basic kubectl commands.

Git store credentials

Having to enter one's credentials for every push to a remote can be annoying. Here is to have git save those credentials for future uses.

Minikube using insecure registry

By default, Minikube will not allow the usage of insecure docker registries. To change this setting, Minikube can be started as so:

Installing VirtualBox on Ubuntu 18.04

VirtualBox used to be installed easily using apt, but this recently changed. Here is a method proven to work:

Apache reverse proxy for web app

Let's imagine that we've just finished developping a NodeJS application that listens for HTTP requests on port 8086 and that we have an Apache2 instance listening on port 80.

Javascript self-executing functions

In Javascript, a function can be defined as so:

Callbacks in Javascript

Here is a simple javascript function that is designed to print its argument in the console:

Publish a module to NPM

This article is based on <a href="" rel="noopener noreferrer nofollow">this publiation</a>.

GitLab CI

GitLab CI is a feature of GitLab that allows users to have actions triggered upon pushing a repository to it's remote. For example, it can be used to execute all tests defined in the code, containerize the application and deploy it. A popular alternative to GitLab CI is Jenkins.

Controlling a motor using an H bridge

Controlling a motor using an H bridge thumbnail
A DC motor model can be as simple as: T = K * I where T is the torque provided by the motor, K the motor constant and I the current that flows through it. From this simple model, one can see that if the sign of the current changes, that of the torque also changes. Thus, changing the direction of rotation of a DC motor is a simple as reverting flow into it.