Home
Geeky Code
Cancel

Automating Tasks with systemd timers

Automating Tasks with systemd timers Automating repetitive tasks is a key part of system administration, and traditionally, cron has been the go-to tool for this purpose. However, systemd timers o...

Setting Up ed25519 SSH Keys and ssh-agent in WSL and Linux

Secure Shell (SSH) is a fundamental tool for developers, system administrators, and anyone requiring secure remote access to servers and systems. SSH keys provide a more secure method of authentica...

How to Migrate Data from One MongoDB Database to Another

When working with MongoDB, there are times when you need to migrate data from one database to another. This could be for backup purposes, testing, or moving a production database to a new environme...

Using journalctl

journalctl is a powerful command-line utility for querying and displaying messages from the journal, managed by systemd-journald. It is commonly used on Linux systems to retrieve and analyze log da...

Using git reset

The git reset command in Git allows you to undo commits and manipulate the state of your repository. It can be a tricky and potentially dangerous tool if used incorrectly, but it’s very useful for ...

Setting up an encrypted disk image on Debian 12 with Cryptsetup

Encrypted disk images allow you to securely store sensitive files on your Linux system. The contents of the image can only be accessed by providing the correct passphrase. In this post, we’ll walk ...

Optional Chaining in JavaScript

Optional chaining is a feature introduced in ECMAScript 2020 that allows for accessing properties on an object without having to explicitly check if the object is null or undefined first. This resu...

Solving FizzBuzz in Python and JavaScript

What is FizzBuzz? FizzBuzz is a simple coding problem used in interviews to test basic programming skills. The task is to print the numbers from 1 to a given number, but print “Fizz” instead if th...

Leveraging Map, Reduce and Filter for Cleaner Code

When working with array data in JavaScript or Python, transforming, combining and filtering that data is a common task. However, using explicit loops every time can make your code messy and hard to...

Is a string an anagram?

An anagram is a word or phrase formed by rearranging the letters of another word or phrase. For example, “elbow” and “below” are anagrams of each other. In coding interviews and programming challen...