Skip to content

Instantly share code, notes, and snippets.

View devantler's full-sized avatar
🚀
✌🏻🧑🏻‍💻🤘🏻

Nikolai Emil Damm devantler

🚀
✌🏻🧑🏻‍💻🤘🏻
View GitHub Profile
@devantler
devantler / ghcr.md
Created August 17, 2022 11:36
GitHub Action Job to push to GHCR
build-and-push-image:
  needs: [build, test]
  runs-on: ubuntu-latest
  permissions:
    contents: read
    packages: write
  steps:
    - uses: actions/checkout@v2
    - uses: actions/download-artifact@v2
@devantler
devantler / how-to-add-a-static-ip-in-ubuntu-22_04-server.md
Created August 5, 2022 22:21
How to add a static IP in Ubuntu 22.04 Server

How to add a static IP in Ubuntu 22.04 Server

Edit the netplan configuration:

sudo nano /etc/netplan/01-netcfg.yaml

Insert the following:

network:
@devantler
devantler / add-hashicorp-gpg-key-and-repository.md
Last active July 24, 2022 16:35
Add the HashiCorp GPG key and the official HashiCorp Linux repository on Ubuntu 22.04+
@devantler
devantler / add-rbd-and-nbd-modules-to-raspbian-64bit-linux-kernel.md
Last active May 14, 2024 21:28
How to add RBD and NBD modules to Raspbian-64bit Linux Kernel

Adding RBD and NBD modules to Raspbian-64bit Linux kernel

DISCLAIMER: Building Linux locally can easily ruin your system. Doing this is at your own risk!

This guide assumes you are using 64bit. If not you have to find the commands that target 32bit for step 3 and 5.

  1. Install Git and build dependencies
    • sudo apt install git bc bison flex libssl-dev make
  2. Clone linux sources
    • git clone --depth=1 https://github.com/raspberrypi/linux
@devantler
devantler / rm-commited-in-gitignore.md
Last active December 3, 2022 18:48
Remove committed files that are in .gitignore

Linux/MacOS: git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached

Windows (PowerShell): git ls-files -ci --exclude-standard | % { git rm --cached "$_" }

Windows (cmd.exe): for /F "tokens=*" %a in ('git ls-files -ci --exclude-standard') do @git rm --cached "%a"