At its core, the modulus operation helps you find the remainder when you divide one number by another. It’s often denoted using the percentage sign %. For example, when you divide 10 by 3, the division gives you 3 with a remainder of 1.
Continue reading
In today’s rapidly evolving tech landscape, Site Reliability Engineering (SRE), cybersecurity (Security Operations Center - SOC), and Artificial Intelligence (AI) have emerged as pillars that drive digital resilience, security, and innovation. As companies increasingly rely on cloud infrastructure, demand for a role that merges these three domains has never been higher. The result? A revolutionary new role: the Intelligent Systems Reliability and Security (ISRS) Engineer.
Continue reading
When I open the terminal, I often have to check and update the system using sudo apt update. I thought this process could be made more efficient, so I started considering creating a script that would automatically perform this update only once each time the terminal is opened.
Continue reading
Python is not only popular as a programming language for application development but also quite powerful for automation tasks in the terminal. Here’s a little useful guide to using one-liner Python commands that can help us work efficiently in the terminal.
Continue reading
Recently, I ran into a tricky issue while trying to uninstall Nginx from my BunsenLabs system. Initially, I just wanted a fresh start, but the process ended up being more complicated than I expected, and finding the right solution took quite a bit of time.
As usual, let's dive into a bit of experimentation to better understand return, but this time with Python. (I felt uncomfortable with Perl as I mentioned in the previous post.) Anyway, back to Python! In Python, the return keyword is used to stop a function’s execution and give back a value from that function. But there are a few things worth understanding about how it works.
Continue reading
When it comes to scripting in the terminal, programmers generally rely on Bash, Zsh, or other shell scripts. However, since I haven’t thoroughly learned those languages yet and have only picked up a few basic commands to make my work in the terminal faster (pardon my laziness), I initially chose Perl as my main scripting language. As I started using it, I found Perl's syntax confusing and its conventions unusual. Ultimately, I realized that spending time on something that is both confusing and obsolete would only waste my time.
Continue reading
As usual, I’m conducting experiments with Perl. This time, I’m focusing on how variables declared with my behave when used in different contexts. During this experimentation, I encountered an interesting warning when trying to redeclare a variable with the same name. This raised the question: Will redeclaring a variable give me an error?, and what impact does it have on my code?
Continue reading
Let’s talk about looping one more time. I began wondering how exactly looping works in Perl. This language provides several useful types of loops for repeating code blocks: while, until, for, and foreach.
Continue reading
Do you remember the recursion error that occurred in the previous article? I wanted to dig deeper into this phenomenon once again. A quick recap: a recursion error happens when a function continually calls itself without a clear stopping condition, leading to excessive memory usage and eventually throwing an error when the memory stack is exceeded.
Continue reading