Learn how to use the kubectl logs command to get a continuous stream of logs from the Kubernetes pods.
Tapan Avasthi is an experienced Senior Engineer with almost a decade of experience in backend development in the software industry. They have a solid inclination to automate the tedious parts of software development and possess an opinionated view on writing elegant, clean code regardless of the technology stack. Additionally, they have ample experience working with Java and Spring ecosystems and a working knowledge of advanced DevOps concepts.
Here's what I've written (so far):
Baeldung on Java
- Programming (3)
- Spring Boot (2)
- Spring (2)
- Networking (2)
- Logging (2)
- Data (2)
- Testing (1)
- Reactive (1)
- NoSQL (1)
- Java String (1)
- Java Array (1)
- Docker (1)
- DevOps (1)
Learn multiple approaches to converting an int to a HashSet in Java.
Learn how to send data from files using cURL with the –data and –form options.
Learn how to use cURL for sending raw body data over a POST request.
Learn how to split a String by whitespace characters, such as space, tab, or newline, using multiple approaches
Learn to enable and disable endpoints at runtime in a Spring Boot application using a few popular libraries, such as Spring Cloud, Spring Actuator, and Apache’s Commons Configuration.
Learn how to use the Resilience4j library with a simple Spring Boot application.
Dive into the internals of the storage engine used by Apache Cassandra.
Learn how to change the directory when building a Docker image or when running a container using an image.
Learn a few strategies to determine if the Kafka server is running
Learn about two popular techniques to undo a git rebase operation
Learn how to read Flux into a single InputStream
Learn how to use Postman collections to perform simple load testing
Learn how to find the consumer lag on a Kafka topic.
Baeldung on Linux
- Scripting (20)
- Files (9)
- File Searching (8)
- File Editing (8)
- Administration (8)
- Web (5)
- Processes (2)
- File Viewing (2)
- File Permissions (1)
Learn how to use the getline function in AWK to read from files and piped external commands.
Learn how to show a character at a specific position in a file using command-line utilities such as head, tail, sed, awk, od, cut, and read.
Learn how to get the current date in awk and use it for date-time logging, data analysis, and data filtering.
Learn how to download multiple files with a single curl command using brace syntax.
Learn how to remove the last occurrence of a pattern in a file using command-line utilities, such as sed, awk, and tac
Learn various methods of getting the absolute value of numbers in Awk.
Learn how to use multiple delimiters in Awk to separate fields in an input record using the split(), match(), and substr() functions.
Learn to sort Docker images using the docker images command with multiple command-line utilities.
Learn how to increment a number in a matched pattern using different command-line utilities, such as awk, sed, expr, bc, grep, and cut.
Learn how to get the current branch name and assign it to a variable using various git sub-commands.
Learn how to use wc, sort, awk, find, and xargs to list the files sorted by the number of lines they contain.
Explore multiple approaches for finding directories not containing a specific file in Linux.
Learn multiple ways to redirect the contents of a file to the echo command.
Learn how to run the content of a variable as a command in Bash using command-line utilities such as eval, sed, and awk.
Learn how to generate a list of dates in a range in Bash using different command-line utilities.
Learn several techniques to convert a string to hexadecimal using command-line utilities in Linux.
Explore the incremental search feature in Vim along with the search highlight feature.
Explore multiple approaches to searching a file from its end.
Learn multiple ways to store standard error text in a Linux variable.
Learn how to append text at the beginning of a file using cat, awk, tee, and sed.
Learn to use conditional constructs such as if-else by writing a set of Jenkins pipelines primarily in the Groovy language.
Learn about Linux’s cal and ncal commands to show the calendar in the terminal.
Learn how to match a pattern “N” times using sed for single-line and multi-line inputs.
Explore multiple strategies for splitting a parameter (input record) by a character using awk.
Learn multiple ways to join lines in a text file without introducing a space.
Compare the features of Secrets and ConfigMaps in Kubernetes.
Learn how to pass environment variables to Kubernetes deployment.
Learn important differences between labels and annotations in terms of structure, accessibility, and direct integration with controllers.
Learn about the livenessProbe and readinessProbe mechanisms by configuring them for different scenarios.
Learn the use of awk’s BEGIN and END blocks to solve several interesting use cases, including report generation, line deduplication, sorting, data validation, and data conversion.
Learn how to multiply columns using awk where columns are from the same file or different files.
Learn several ways to cat the contents of the files (found using find) to a single destination file.
Explore several strategies to embed a shell command into a sed expression, such as the substitution flag, command substitution, and parameter expansion.
Learn how to do file cleanup activity by removing files older than N days and how to automate the process.
Learn how to remove an element from a Bash array using positional offsets, selective copying, and utilities such as set, shift, and tac.
Learn how to convert timestamps in a column to a comprehensible date format
Learn the significance of disabling the output of the wget command in cron
Learn how to use GNU sed to remove multi-line text blocks in different scenarios.
Learn how to find files with duplicate names in any letter case using the find, ls, sed, awk, grep, and cut commands.
Learn how to use the docker-compose command to check whether a container is running and how to make such checks more effective by adding a health check for the services.
Learn how to make a jq program reusable by passing Bash variables to it.
Learn how to get the octal permissions of files in Linux using the stat, find, sed, awk, and exa commands.
Learn how to connect to a site using cURL and retrieve the HTTP response status.
Learn how to write dynamic awk scripts by passing parameters.
Learn how to find all files containing a specific text pattern using Linux utilities like find, grep, and a few other alternatives.
Learn how to use sed, awk, and shell parameter expansion to grep without leading whitespace.
Learn multiple strategies to match a pattern using the grep command and remove the trailing newline from the output.
Learn how to use sed and awk to replace specific lines with a string variable
Learn a few ways to use the curl and wget commands for downloading a set of files listed in a file
Learn how to split a text file based on a regular expression with the help of a few popular text-processing utilities.
Learn how to replace the nth occurrence of a pattern by using a few advanced concepts in sed.
Learn a few ways in which we can output the document and headers to the stdout using the wget command
Learn how to get relative dates in a DST-safe manner.
Learn the basics of using variables in a Makefile, followed by using the ?= operator for a more advanced use case
Learn few common strategies to redirect the output of a process to a file and standard streams such as stdout and stderr simultaneously
Baeldung on Kotlin
- Kotlin Collections (6)
- Kotlin Numbers (3)
- Kotlin Strings (2)
- Kotlin Dates (2)
- Kotlin Concurrency (1)
- Algorithms (1)
Learn how to convert between units of duration in Kotlin.
Learn how to remove a map entry using on a condition on the key during iteration.
Learn different ways to count the number of vowels and consonants in a sentence in Kotlin.
Learn several approaches, such as loops, extension functions, and sequences, to calculate the average of all items in a Kotlin list.
Learn several approaches, such as loops, extension functions, recursion, and sequences, to calculate the sum of the first N natural numbers in Kotlin.
Learn to solve a quadratic equation in Kotlin.
Learn different ways to check for leap year in Kotlin.
Learn multiple techniques for converting decimal values to octal values and vice-versa.
Learn how to perform core operations, membership checks, and transformations using Set and MutableSet in Kotlin.
Learn different ways in Kotlin to check whether a number is Fibonacci.
Learn the basics of Base64 encoding and explore a few popular ways to encode and decode strings to Base64 in Kotlin.
Learn how to do equality checks for arrays in Kotlin
Learn about Kotlin’s support for arrays
Learn how the yield function works in Kotlin through examples with two use cases: building sequences and cooperative multitasking.
Learn how to remove duplicate values and entity objects from an array in Kotlin
Baeldung on Ops
- Docker (2)
Explore few shell commands to get the list of active brokers in a running cluster
Learn how to create single-node and multi-node setups of Apache Kafka in Docker