blog@lukash:/

My Kubernetes cheat sheet

Kubernetes is a container-orchestration system we use at my current job. It’s not my primary focus at work but from time to time I need to use the kubectl command line tool. …

Examining uname

uname is a Unix program to print some of the basics about the kernel and system. The most common option to run the program is -a which prints all available information. This is an …

S3 upload object tagging in AWS Lambda

AWS SAM allows you to choose from ready-made policy templates to scope the permissions of Lambda functions. You might experience an “Access Denied” error when you play …

Controlling processes with ulimit

Certain resources in Unix systems can be limited to ensure that the most important processes have enough resources. The ulimit is a build-in bash command that can limit the use of …

Examining /proc filesystem

The /proc directory is a special directory which holds all the details about the Linux system. Because of this reason, it can be regarded as a control and information centre for …

Disk space usage

A filespace can be estimated with the disk utility program - du. The disk utility is recursive for directories by default. To show the amount of space used only for the first level …

Linux Filesystem

To maintain Linux filesystem it’s important to know where the files are located. For this reason, Linux provides tools to help with this. One of these tools is standardised …

Mastering PHP arrays: Array basics

An array is one of the most powerful and flexible data types in PHP.

Mastering PHP arrays: Array sorting

Sorting is an operation that arranges data in a specified way. PHP has several functions that deal with sorting arrays. Let’s examine these functions.

PHP 7 return type hinting: class name vs self

The return type declarations require functions to return certain data type at call time. It clarifies expected usage of code and helps IDEs with autocomplete functionality without …