Skip to content

Instantly share code, notes, and snippets.

View fabianoflorentino's full-sized avatar

Fabiano Santos Florentino fabianoflorentino

View GitHub Profile
# Tmux Cheat Sheet (prático)
> Prefixo padrão: `Ctrl+b`
> Quase todos os comandos começam com o prefixo.
---
# Sessões
## Criar sessão
# ===============================
# Setup log (same directory)
# ===============================
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
$logFile = Join-Path $scriptDir "compact-vhdx.log"
function Log {
param ([string]$message)
$timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss"
@fabianoflorentino
fabianoflorentino / Makefile
Created February 3, 2026 02:34
Gerenciamento do ambiente de desenvolvimento do blog Hugo com Docker
# ============================================================================
# Hugo Blog - Makefile
# ============================================================================
# Gerenciamento do ambiente de desenvolvimento do blog Hugo com Docker
# ============================================================================
.PHONY: help build up down restart logs shell clean rebuild status new-post \
new-draft list-content build-prod generate check-deps info watch url \
dev quick-start quick-stop logs-tail health prune
@fabianoflorentino
fabianoflorentino / redhat-system-update
Created January 30, 2026 00:01
A simple script to update system and homebrew on linux redhat based
#!/bin/sh
set -e pipefail
# Update system packages
{
sudo yum update -y && sudo yum upgrade -y
} > /dev/null 2>&1 && echo "System packages updated."
# Pause for a moment to ensure all processes complete

Entender o Comunismo por Jonel Manoel

  1. Sociologia do negro brasileiro - Clóvis Moura
  2. Dialética radical do brasil negro - Clóvis Moura
  3. Sociologia para jovens do seculo XXI - Luiz Fernando de Oliveria/Ricardo Cesar Rocha da Costa
  4. Manifesto comunista - Karl Marx/Friedrich Engels
  5. A guerra civil nos estados unidos - Karl Marx/Friedrich Engels
  6. A situação da classe trabalhadora na inglaterra - Friedrich Engels
@fabianoflorentino
fabianoflorentino / VERSION.mk
Created July 31, 2025 16:36
include VERSION.mk no seu Makefile
# Configuração de Versão para Makefiles
# Este arquivo usa sintaxe específica do Make
# Para usar: include VERSION.mk no seu Makefile
# Versão base
VERSION := 0.0.1
IMAGE_TAG := v$(VERSION)
# Data de build (sintaxe Makefile)
BUILD_DATE := $(shell date -u +'%Y-%m-%dT%H:%M:%SZ')
@fabianoflorentino
fabianoflorentino / Makefile
Created July 31, 2025 16:35
Docker commands for managing the application
# Makefile for Mr. Robot Application
# Author: Fabiano Florentino
# Description: Docker commands for managing the mr-robot application
# Include version configuration
include VERSION.mk
# Variables for better maintainability
APP_NAME := mr-robot
DEV_COMPOSE_FILE := docker-compose.dev.yml
package main
import (
"fmt"
"time"
)
func main() {
const (
numElements = 10_000_000_0

Setup multiple git identities & git user informations

/!\ Be very carrefull in your setup : any misconfiguration make all the git config to fail silently ! Go trought this guide step by step and it should be fine 😉

Setup multiple git ssh identities for git

  • Generate your SSH keys as per your git provider documentation.
  • Add each public SSH keys to your git providers acounts.
  • In your ~/.ssh/config, set each ssh key for each repository as in this exemple: