Getting Started with Python Environments

Getting Started with Python Environments: Conda, venv, and Installing Dependencies Managing Python projects efficiently requires a solid understanding of virtual environments and dependency management. This guide introduces you to two popular tools—conda and venv—and shows you how to set up a project and install dependencies from a requirements.txt file. Why Use Virtual Environments? Virtual environments allow you to: Isolate dependencies for each project. Avoid conflicts between package versions. Maintain a clean global Python installation. Both conda and Python’s built-in venv module are excellent tools for creating virtual environments. ...

November 22, 2024 · 3 min · 478 words · Me

How to Check and Clean Up Disk Space on Linux Servers (Ubuntu)

Running out of disk space on your Ubuntu server can cause performance issues and prevent applications from running properly. This guide provides straightforward steps to help you check disk space usage and clean up your server effectively. Check Current Disk Space Usage To see how much disk space is currently being used, open your terminal and run: df -h df displays disk space usage. -h makes the output human-readable. This command shows disk usage for all mounted filesystems. Look at the Use% column to identify filesystems with high usage. ...

September 2, 2024 · 3 min · 532 words · Me

How to Resize a Filesystem on Hetzner Cloud VM

If you’ve recently upgraded the disk size of a volume on Hetzner Cloud, you’ll find that the additional space is not automatically available for use. This is because the filesystem on the disk needs to be resized to utilize the new space. Here’s a straightforward guide on how to resize your filesystem on a Hetzner Cloud virtual machine (VM). ...

April 24, 2024 · 2 min · 284 words · Me

Link Up Your Life: Symlinks in Linux and Windows

Symlinks (symbolic links) are like the ultimate shortcuts in the world of operating systems. They help you point to files and folders from multiple locations without creating duplicates. Let’s dive into how you can create and manage symlinks, making your life easier whether you’re navigating the Linux terminal or the Windows Command Prompt. Linux: Creating and Managing Symlinks Making a Symlink In Linux, creating a symlink is as simple as striking a few keys: ...

March 25, 2024 · 2 min · 278 words · Me

Add Private SSH Key(s)

Setting Up SSH Keys on a New Installation New installations often require setting up SSH keys. Here’s a quick guide on how I configured my new computer with existing SSH keys that were already generated and installed on a remote server. Step 1: Copy the Private Key First, navigate to the SSH directory: cd ~/.ssh/ Step 2: Set the Correct Access Privileges It’s important to set the correct read and write permissions for your private key: ...

April 12, 2020 · 1 min · 145 words · Me

Basic git commands

Hey Here’s just a simple cheatsheet for the most basic git commands. git init View gist on GitHub: git-init.sh git add file/files View gist on GitHub: git-add.sh git status View gist on GitHub: git-status.sh git commit View gist on GitHub: git-commit.sh git push View gist on GitHub: git-push.sh git pull View gist on GitHub: git-pull.sh git clone View gist on GitHub: git-clone.sh git branch View gist on GitHub: git-branch.sh https://github.github.com/training-kit/downloads/github-git-cheat-sheet.pdf ...

August 31, 2019 · 1 min · 70 words · Me

Linux Commands

Here are some common Linux commands: ls - used to list the contents of a directory cd - used to change the current working directory mv - used to move or rename files and directories mkdir - used to create a new directory rm - used to delete files and directories chmod - used to change the permissions of a file or directory sudo - used to execute a command with superuser privileges apt-get - used to install and manage software packages on Linux systems grep - used to search for text patterns in files man - used to display the manual pages for a command These are just a few examples - there are many more Linux commands that can be used for various tasks. ...

October 20, 2017 · 2 min · 330 words · Me