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:
@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>

Advanced JavaScript Concepts for Interview Preparation

Closures in JavaScript

A closure is a function paired with its surrounding lexical environment. It allows an inner function to retain access to the variables of an outer function even after the outer function has returned. Every time a function is created in JavaScript, a closure is formed at function creation time. This mechanism allows functions to β€œremember” and access their outer scope variables later on, enabling powerful patterns for state management and encapsulation.

Use Cases:

  • Data Privacy and State – maintaining a private counter or configuration that only your functions can access.
  • Function Factories and Currying – presetting arguments and returning new functions.
  • Caching and Memoization – storing previous results in a closure for performance.
@origamiofficial
origamiofficial / Recaptcha Solver (Automatically solves Recaptcha in browser).user.js
Created March 25, 2022 04:42
Recaptcha Solver in Browser | Automatically solves Recaptcha in browser by engageub | Note: This script is solely intended for the use of educational purposes only and not to abuse any website. This script uses audio in order to solve the captcha. Use it wisely and do not abuse any website. Click "Raw" to install it on Tampermonkey
// ==UserScript==
// @name Recaptcha Solver (Automatically solves Recaptcha in browser)
// @namespace Recaptcha Solver
// @version 2.1
// @description Recaptcha Solver in Browser | Automatically solves Recaptcha in browser
// @author engageub
// @match *://*/recaptcha/*
// @connect engageub.pythonanywhere.com
// @connect engageub1.pythonanywhere.com
// @grant GM_xmlhttpRequest
@tatumroaquin
tatumroaquin / archlinux-qemu-kvm.md
Last active December 8, 2025 12:29
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

@syntaqx
syntaqx / cloud-init.yaml
Last active November 20, 2025 12:33
cloud init / cloud config to install Docker on Ubuntu
#cloud-config
# Option 1 - Full installation using cURL
package_update: true
package_upgrade: true
groups:
- docker
system_info:
@vasanthk
vasanthk / System Design.md
Last active December 9, 2025 18:43
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@rxaviers
rxaviers / gist:7360908
Last active December 10, 2025 16:26
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue: