Articles
Swift basics
Here are some of the basis of the Swift programming language
Users and groups in Linux
In linux, or at least Ubuntu, a user can be added using:
Habit tracker
Maintaining good habits can sometimes be hard. Recently, I've been looking at the way contributions are displayed on GitHub: a grid with a cell for each day, turning green if contributions have been made on that date. I realized that it motivated me to write code everyday, just to keep that grid as green as possible. So, I decided to create an app that provides a similar kind of motivation but for habits other than coding daily.
Inheritance in Python
Let's imagine that we have a python class as follows (Python 3):
Kubectl pull new version of image without changes to manifest
When using kubectl apply using an already applied and unchanged manifest file, nothing happens on the Kubernetes cluster. However, deployments can be configured so as to always pull a new version image upon restart. This is achieved using the, <code>imagePullPolicy: Always</code> parameter:
Kubectl create deplpoyment and service at same time
Simply add entries for both the deployment and the service in the same manifest, separeted by ---
指紋リーダブリーフケース
ブリーフケースには電子ロックと指紋リーダがついてるので、指で解除される。
Reducing GitLab memory consumption
The memory consumption of GitLab can be reduced slightly by turning prometheus monitoring off:
Generic Kubernetes manifest for web application deployment
Deployment name, container registry and service port are externalized, making this manifest general-purpose
Deploy a Neo4J instance in Kubernetes
Using this manifest, a Neo4J instance can be deployed in a Kubernetes cluster