Skip to content

Instantly share code, notes, and snippets.

View carlosgrillet's full-sized avatar
💭
I do everything on the therminal

Carlos Grillet carlosgrillet

💭
I do everything on the therminal
View GitHub Profile
@carlosgrillet
carlosgrillet / README.md
Created March 23, 2026 17:05
Rust Ownership: The Complete Mental Model

Rust Ownership: The Complete Mental Model

Rust rules are simple to understand but can confusing to implement.

Part 1: ELI5 (Explain Like I'm 5)

The Apartment Analogy

Think of every value in Rust as a physical apartment key — not a copy, the only key.

@carlosgrillet
carlosgrillet / README.md
Created April 15, 2026 21:00
This guide outlines the "Fedora Way" for deploying manual services. It covers standard Linux permissions (DAC) and the stricter SELinux controls (MAC) required for Fedora 43.

Fedora Service Deployment Guide

1. System User Setup

Never run a service as root or a standard login user. Create a dedicated system user.

# -r: System account (no aging, UID in system range)
# -s /sbin/nologin: No interactive login shell for security
# -U: Create a group with the same name as the user
# -m -d: Create and set the home directory
sudo useradd -rs /sbin/nologin -Umd /var/lib/myservice myservice
@carlosgrillet
carlosgrillet / .goreleaser.yaml
Created June 30, 2026 11:00
Config GoReleaser in private github repositories
# Legend:
# <tool_name> the name of your binary, e.g. gotool
# <owner> the owner of the tool repository, e.g. privGo
# <repo> the tool repository
# <tap_owner> the owner of the homebrew tap repository
# <tap> the name of the homebrew tap
# <license> the license of your tool
# <project_description> description of your tool
#
# Example: