Skip to content

Instantly share code, notes, and snippets.

View drewdomi's full-sized avatar
😝
Bleh

Andrew Domingues drewdomi

😝
Bleh
View GitHub Profile

Fixing virt-manager VM Internet Connectivity Issues on Arch Linux

Problem Description

When using virt-manager on Arch Linux, virtual machines may successfully obtain IP addresses from the NAT network (typically 192.168.122.x) but fail to access the internet. This manifests as:

  • ✅ VM gets IP address from DHCP (e.g., 192.168.122.112/24)
  • ✅ VM can ping the gateway (192.168.122.1)
  • ✅ DNS resolution works inside the VM
  • ❌ VM cannot reach external IP addresses (e.g., 8.8.8.8)

File Copying in Linux: cp vs rsync (with Examples)

1. What Is the cp Command?

  • cp is a standard Unix/Linux command for copying files and directories locally.
  • It is simple and fast for everyday file management.

2. When to Use cp

IPv6 Connectivity Fix for K3s Clusters

This document explains how to resolve IPv6 internet connectivity issues in K3s clusters running on Rocky Linux with firewall-cmd.

Problem Description

When K3s is configured with IPv6 support (dual-stack), pods may have IPv6 addresses but cannot reach external IPv6 services on the internet. This happens because:

  1. Missing IPv6 NAT/Masquerading: Unlike IPv4, IPv6 requires explicit masquerading rules for container networks
  2. Firewall Configuration: firewall-cmd needs masquerading enabled for NAT to work

Cockpit Kubernetes Complete Architecture Guide

Date: 2025-08-18 17:16:05 UTC
Author: drewdomi
Topic: Complete ServersTransport and EndpointSlice Usage with IngressRoute and Service

Complete YAML Configuration

apiVersion: discovery.k8s.io/v1

Linux Permissions: Why NOT to Use chmod 777 and How to Share Files Securely

Overview

Linux permissions control who can read, write, or execute files and directories. Using chmod 777 makes a file accessible to all users for reading, writing, and executing—but this is almost always insecure for sensitive files and poor practice for shared resources.


Understanding Permissions

Podman Pod System Guide

What are Podman Pods?

Pods in Podman are similar to Kubernetes pods - a group of containers that share the same network namespace, storage, and lifecycle. All containers in a pod can communicate via localhost and share volumes.

Basic Pod Operations

Creating Pods

firewall-cmd Rocky Linux Cheat Sheet

Basic Status and Information

# Check firewall status
sudo firewall-cmd --state

# Get active zones
sudo firewall-cmd --get-active-zones

📝 Plano de Estudos de Teoria Musical com Composição de Música Eletrônica

Introdução

Este plano de estudos foi desenvolvido para guiar qualquer pessoa, desde iniciantes até músicos mais experientes, através de uma jornada progressiva de aprendizado em teoria musical, com foco especial na aplicação prática para composição de música eletrônica. O conteúdo está organizado em módulos sequenciais, cada um construindo sobre os conhecimentos adquiridos anteriormente.

Estrutura do Curso

O plano está dividido em 6 módulos principais, organizados do nível básico ao avançado:

Computing Study Roadmap by drewdomi

A rigorous, systems-focused approach to mastering computer science fundamentals

🎯 Philosophy

This roadmap is designed for "serious" learners who want to understand how computers actually works. We start with C because it forces you to understand memory management, system calls, and low-level operations.

Estimated Timeline: 18-24 months (intensive study) Prerequisites: Basic programming knowledge, comfort with command line