There is a project you have to start in a month. You will hire a team leader and you have to select the best one with the features you are looking for from among 500 applicants.

You found a new job in another city, so you have to move to the city in a month. Your aim is to find the best house that should be near your office, affordable, new, and secure.

You are going to the pub newly opened. It is so popular and there is a parking problem. The weather is cold and you hate valet parking…

Albert Einstein who is a mathematician at first before being a physicist. said, “Pure mathematics is, in its way, the poetry of logical ideas”.

In the past, education of mathematic and physic was happing in the same departments. Scientists were talking about pure and applied mathematics for centuries. Then, different fields of science were born from mathematics. But we are still talking about pure and applied mathematics. In order not to burn the ashes of controversy again, I immediately give up physics examples. Anyway, what is the difference between pure and applied mathematics? For example, Number theory or arithmetic or…

At first, I assume that you know and use docker. Nowadays, Maybe using docker in a production environment is controversial, but it is the best convenient for the development and deployment stages. Meanwhile, in my opinion, Depending on the project, docker is quite successful in production generally., Nevermind, I don’t want to prove or defend docker, she doesn’t need anyway :)

We will focus on build operations right now. In this context, we will be talking about Multistage Build which aims to reduce the cost in terms of image capacity. Multistage Build also supports creating clean images and so manage…

In old days, Prior to beginning any project, most development teams go through fevered discussions to decide the best language for their software. Nowadays, most of the time, this discussion boils down to Python and Golang. But software developers today know actually, there is no the best language, there is the best proper language for our project. On the other hand, projects today are so vast and advanced, so deciding on a language is not easy and right. This is why microservice architectures were developed. Separated small models can be developed easily with proper different languages and technologies. Approaching of…

Whatever you are a DevOps engineer or system administrator or Linux administrator and even software engineer, you need to analyze network packets. When we talk about network sniffing, Wireshark is the first thing that comes to mind. But Wireshark requires a graphic user interface (GUI). If you are a system engineer, you have to work in black screens named as the shell or maybe you don’t like graphic interfaces like me. If you’ve ever dived deep into the Linux world, you’ve heard of Tcpdump or used it. Tcpdump is a powerful command-line tool that helps ease the pain of troubleshooting…

You need string manipulation, no matter what you are. You may be a coder in the software team or Linux administrator in the system team or any team member in the DevOps team. Therefore, you must learn string manipulation for different languages. Especially if you are a system/DevOps engineer, probably you have to use different languages but it is nearly impossible you are an expert in string manipulation for many languages. But if you are an expert in Bash, it does not matter which language use when you need advanced string manipulation operations. Because Bash is a universal language in…

Amazon Lambda is probably the most famous serverless AWS service. Generally, It offers a low-cost solution and a relatively simple and straightforward platform for implementing functions in different languages. If your script is not complex, setup is incredibly simple. But, One of the main problems with Lambda is that it becomes tricky to set up as soon as your functions and triggers get more complex.

If you were using the Docker platform, you would import your custom packages with PIP. Unfortunately, there is no docker and PIP package manager. There are just built-in packages available. So the AWS found a…

I think that all of the DevOps know the Boto library in Python. Boto3 is a really wonderful library for AWS operations. But nowadays GoLang is a popular language like Python in the DevOps community. Sometimes you can need only one binary executable file instead of tons of python scripts. AWS SDK for Go is really powerful. It includes many AWS operations, especially on EC2 and S3. The SDK removes the complexity of coding directly against a web service interface also includes helpful utilities on top of the AWS APIs that add additional capabilities and functionality. For example response paginator…

Amazon Simple Email Service (Amazon SES)

“sender.sh” script can send an email with an attachment by using Amazon SES services (Amazon Simple E-mail Services). It needs the AWS Cli tool.

Install

You have to just install the AWS CLI tool. There are many ways to install the Amazon Web Service Command Line Client (aka AWS Cli) including using pip package manager, homebrew package manager or just downloading the raw executables.(http://docs.aws.amazon.com/cli/latest/userguide/installing.html) As a Mac user, I prefer to use Homebrew ( https://brew.sh/ )

brew install awscli

or

pip3 install --upgrade --user awscli

After installing AWS Cli, you must configure the credential file. You can use this command:

aws…

There are two ways to cast values in GoLang because GoLang is a static type language but there is an interface type for unclear types. The usage of interfaces in GoLang is a little bit tricky. An interface isn’t just a collection of method contracts. We can create a variable of its type. An interface does not have a static value, rather it points to a dynamic value. This feature provides easy programming like script languages when it is necessary. For example, we can need unclear types of function parameters. So you should use interface type on your function parameters.

Batur Orkun

DevOps & Software & Architect & Linux Geek — http://baturorkun.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store