A gloved hand bolts an oversized black key onto the bare face of a dark machine, with a green light in the panel.

Getting Started with Neovim: From Install to LazyVim

Neovim is Vim with the parts that aged badly replaced: Lua instead of Vimscript, a language server client built in, and syntax trees instead of regular expressions. It is still the editor that opens in a terminal in a tenth of a second and does not need a mouse. This is how I set it up on a new machine. I rewrote it the week I set up a new Mac, following it step by step. Every command has a Copy button, and the ones marked Run type themselves into this site’s terminal, so you can see what they do first. At the end there is a checklist that remembers where you got to. ...

December 25, 2024 · 9 min · 1820 words · Kristoffer Risa
A gloved hand holds the end of a dark chain while green sparks jump along the links on a table.

Link Sparks: Essential Knowledge for Programmers

Link Sparks: Essential Knowledge for Programmers A treasure trove of resources that every programmer should know. This curated list covers a wide range of essential topics, including algorithms, memory management, security, and best practices for writing clean and efficient code. Whether you’re just starting or looking to refine your skills, this guide has something valuable for everyone. Explore the list on GitHub

November 28, 2024 · 1 min · 62 words · Kristoffer Risa
A gloved hand lowers a glass bell jar over a short stack of black boxes beside a taller uncovered stack, the covered stack lit green.

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 · 532 words · Kristoffer Risa
A gloved hand holds a vacuum nozzle over glowing green squares on a dark floor.

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: bash Copy 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 · 550 words · Kristoffer Risa
Gloved hands pull a black sheet across a glowing green rectangle set into a dark floor.

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 · Kristoffer Risa
A gloved hand holds a translucent folder while a taut green line runs from it to a dark filing cabinet.

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 · 294 words · Kristoffer Risa
A gloved hand slides an oversized iron key into the slot of a matte black machine whose face is a blank green rectangle.

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: bash Copy 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 · 153 words · Kristoffer Risa
A gloved hand sets a tiny black chair on top of a tall stack of identical chairs in a dark room lit green.

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 · Kristoffer Risa
A gloved hand pulls the one glowing lever in a long row of dark levers.

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 · 342 words · Kristoffer Risa