Skip to content

Instantly share code, notes, and snippets.

View eujuliu's full-sized avatar
🎯
Focusing

Julio Martins eujuliu

🎯
Focusing
View GitHub Profile
@eujuliu
eujuliu / README.md
Last active December 9, 2025 03:29
Ever needed to spin up multiple Ubuntu VMs quickly for testing, development, or learning? In this post, I'll walk you through a bash script that automates the entire process using libvirt/KVM and cloud-init.

Automating Ubuntu VM Creation with libvirt and Cloud-Init

Ever needed to spin up multiple Ubuntu VMs quickly for testing, development, or learning? In this post, I'll walk you through a bash script that automates the entire process using libvirt/KVM and cloud-init.

What This Script Does

  • Downloads the official Ubuntu Noble cloud image automatically
  • Creates multiple VMs with customizable resources (memory, CPUs, disk)
  • Configures static IPs in the 192.168.122.2-254 range
  • Sets up SSH access via your GitHub public keys
@eujuliu
eujuliu / README.md
Last active November 9, 2025 16:08
This is a Docker compose for Generate a Hashicorp Vault with Vault Agent and have a manager for your .envs

Setup Hashicorp Vault + Vault Agent on Docker Compose

Here you will learn my configuration for a full docker compose hashicorp vault configuration

Files

First create a directory for put the config files, i will put in /opt/vault

Create the docker-compose.yml

services:
#!/usr/bin/env bash
# Usage: ./env-to-vault.sh path/to/.env secret/path/in/vault key/path/in/vault
# Example: ./env-to-vault.sh .env secret/data/myapp envs
set -e
if [ "$#" -ne 3 ]; then
echo "Usage: $0 <.env file> <vault secret path> <vault key path>"
exit 1
@eujuliu
eujuliu / index.html
Created September 17, 2025 22:45 — forked from SubCoder1/index.html
Server Side Event in Go using Gin
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Server Sent Event</title>
</head>
<body>
<div class="event-data" id="data"></div>
@eujuliu
eujuliu / archlinux-qemu-kvm.md
Created August 26, 2025 10:58 — forked from tatumroaquin/archlinux-qemu-kvm.md
QEMU-KVM Installation for Arch Linux

QEMU-KVM in Arch Linux

Check Virtualization Support

lscpu | grep -i Virtualization
  • VT-x for Intel
  • AMD-Vi for AMD

Ensure that your kernel includes KVM modules