Skip to content

Instantly share code, notes, and snippets.

View loic-roux-404's full-sized avatar
🌮
Trying things

Loïc Roux loic-roux-404

🌮
Trying things
View GitHub Profile
@max-i-mil
max-i-mil / linux-vms-on-apple-m1-with-networking.md
Last active August 18, 2025 15:20
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
@toryalsip
toryalsip / install-latest-hugo.sh
Last active March 15, 2023 00:51
Download latest hugo
#!/bin/bash
if [ -z $HUGO_VERSION ] ;then
HUGO_VERSION="latest"
API_ENDPOINT="https://api.github.com/repos/gohugoio/hugo/releases/latest"
else
API_ENDPOINT="https://api.github.com/repos/gohugoio/hugo/releases/tags/v$HUGO_VERSION"
fi
HUGO_INSTALL_FILE="/tmp/hugo.deb"
DOWNLOAD_URL=$(curl -s $API_ENDPOINT \
| grep "browser_download_url.*hugo_extended.*_linux-amd64\.deb" \
@fopina
fopina / mic_client.py
Created July 28, 2016 12:24
microphone streaming with pyAudio
#!/usr/bin/env python
import pyaudio
import socket
import sys
FORMAT = pyaudio.paInt16
CHANNELS = 1
RATE = 44100
CHUNK = 4096