VOOZH about

URL: https://gist.github.com/thiagozs

⇱ thiagozs’s gists · GitHub


Skip to content
Sign in Sign up

Instantly share code, notes, and snippets.

Thiago Zilli Sarmento thiagozs

Have a nice day
View GitHub Profile

Use multiple screens

bash -c -- "QT_QPA_PLATFORM=xcb flameshot gui"
#!/bin/sh
set -e
echo "#########################################"
echo "### INIT SCRIPT VERSION: 2026-02-23-v6 ###"
echo "#########################################"
get_container_id() {
docker ps --filter "name=$1" --format "{{.ID}}" | head -n 1
}
thiagozs / rabbitmq.conf
Created
Rabbitmq config docker compose cluster
cluster_formation.peer_discovery_backend = dns
cluster_formation.dns.hostname = tasks.rabbitmq
cluster_partition_handling = autoheal
loopback_users.guest = false
log.console = true
log.console.level = info

Guia de Consulta: Encargos e IOF no Cartão de Crédito (Brasil)

Este documento resume as fórmulas e alíquotas oficiais aplicadas pelas instituições financeiras, conforme as normas do Banco Central (BCB) e da Receita Federal.

1. IOF (Imposto sobre Operações Financeiras)

O IOF varia conforme o tipo de movimentação:

A. Compras Internacionais (Transação Individual)

thiagozs / saga_example.go
Last active
SAGA example system, steps and engine for execution
package main
import (
"context"
"fmt"
"log/slog"
"os"
"reflect"
"sync"
"time"

Game Design Canvas — Jogo: "Eco Launch"

1. Game Concept

Nome: Eco Launch Inspiração: Angry Birds e Cut the Rope

Objetivo: Salvar animais de uma floresta poluída, lançando sementes que regeneram o ambiente e libertam os bichos presos.

Ideia: Um puzzle ecológico que combina física, estratégia e conscientização ambiental.

#!/usr/bin/env bash
#
# Script para criar um usuário no Ubuntu e configurar o diretório HOME
# Autor: Thiago Zilli Sarmento
# Uso:
# sudo ./create_user_with_home.sh <nome_usuario> [grupo_adicional]
#
# Exemplo:
# sudo ./create_user_with_home.sh asapadm sudo
#

Configurando ClamAV Freshclam para rodar sem sudo

Este guia mostra como permitir que o usuário thiagozs execute o freshclam sem precisar de permissões de root, corrigindo o erro:

ERROR: Failed to open log file /var/log/clamav/freshclam.log: Permission denied
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
ERROR: initialize: libfreshclam init failed.
ERROR: Initialization error!
.PHONY: help
## ENVIRONMENT VARIABLES
VERSION_FILE = release-candidate.txt
SEMVER ?= 0.1.0
CURRENT_VERSION := $(shell [ -f $(VERSION_FILE) ] && cat $(VERSION_FILE) || echo $(SEMVER))
# Self-Documented Makefile
# https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
NewerOlder
You can’t perform that action at this time.