Skip to content

Instantly share code, notes, and snippets.

View davidandreoletti's full-sized avatar

David Andreoletti davidandreoletti

View GitHub Profile
@davidandreoletti
davidandreoletti / linux-vms-on-apple-m1-with-networking.md
Created September 16, 2023 14:30 — forked from max-i-mil/linux-vms-on-apple-m1-with-networking.md
Short summary to run Linux VMs on an Apple M1 host using QEMU, libvirt and HVF with a working network setup

Linux Virtual Machines with Private Network on an Apple M1 Device

Background

The aim was to be able to:

  1. Run multiple Linux VMs on an Apple M1/ARM device
  2. Use Apple's HVF for native performance speeds
  3. Configure VMs to allow network access to each other
  4. Configure VMs to allow access to the internet
  5. Not rely on custom modifications of software
@davidandreoletti
davidandreoletti / cubietruck_gpio.md
Created September 22, 2024 06:37 — forked from alextgn63/cubietruck_gpio.md
How to setup and use GPIO ports/pins on a Cubietruck

Setup and use GPIOs on a Cubietruck

Cubietruck is also known as Cubieboard 3

Note: This file documents just what I did, first of all as a note for myself. So this is not primarily intended as a tutorial. Because it still might be helpfull, I uploaded it. The GPIO function is now confirmed to work, tested with my multimeter, but I am still waiting for my jumper cables to arrive, so I can use them securely.

Licensed under a Luna-Will-Cry-If-You-Modify-Or-Redistribute-This 1.0 licence.

@davidandreoletti
davidandreoletti / #cloud-config.md
Created January 16, 2025 01:58 — forked from dazeb/#cloud-config.md
Cloud-Init functions for Debian 12 - 2024

Debian 12 Bookworm cloud-init configs.

Other Linux flavours may have different configs! Test in dev mode first!

The configs below are all seperated. Pick what you need, theres a sample script at the bottom.

  1. Set Timezone and Locale: Configure the system's timezone and locale to match your geographic location and preferred language settings.
timezone: "Etc/UTC"
@davidandreoletti
davidandreoletti / Dockerfile.aur
Created March 24, 2025 06:32 — forked from gwpl/Dockerfile.aur
AUR in Dockerfile ArchLinux -> pacaur yay non-interactive etc (experiment)
# Making AUR work inside Dockerfile in non interactive way.(experiment)
# Use an official Arch Linux runtime as a parent image
FROM archlinux:latest
# Maintainer
LABEL maintainer="yourname@example.com"
# Update system and install dependencies (we do not modify this step for docker caching)
RUN pacman -Sy --noconfirm archlinux-keyring && \
pacman-key --init && \