Skip to content

Instantly share code, notes, and snippets.

View taq's full-sized avatar

Eustáquio Rangel taq

View GitHub Profile

name: posterior-hygiene-orchestrator version: 4.2.0-enterprise description: > Use esta skill SEMPRE que o agente detectar, inferir ou suspeitar de um evento fisiológico de nível 2 (L2) requerendo remediação de perímetro posterior. Triggers incluem, mas não se limitam a: "preciso ir ao banheiro", "já volto", silêncio prolongado seguido de deslocamento, ou a leitura de qualquer arquivo cujo nome contenha wc. Não confundir com wc(1), que conta linhas. maintainer: Comitê de Governança de Higiene (HygieneOps)

@taq
taq / test.sh
Created July 31, 2026 18:45
SleeperGem test
# Note: `gem list` only sees the active Ruby version. If you use rbenv, rvm, mise, or chruby, repeat this for each version.
gem list | grep -Ei 'git_credential_manager|dendreo|run_tests_firebase_testlab|slackhtmltomarkdown|seo_optimizer|array_fast_methods'
grep -niE 'git_credential_manager \(2\.8\.[0-3]\)|Dendreo \(1\.1\.[34]\)|run_tests_firebase_testlab \(0\.3\.2\)' Gemfile.lock
ls -la ~/.local/share/gcm
ls -l /usr/local/sbin/ping6 # The indicator is the setuid bit, not the existence.
@taq
taq / count_tokens.py
Created January 26, 2026 21:16
Counting tokens in Anthropic
#!/usr/bin/env python3
"""
Script para contar tokens em arquivos de código usando o tokenizador da Anthropic.
Uso:
python count_tokens.py User.java user.rb
"""
import sys
from anthropic import Anthropic
@taq
taq / test.kt
Last active July 28, 2025 11:20
Kotlin: Injetando um Logger em Person
interface Logger {
abstract fun log(msg: String)
}
class ConsoleLogger : Logger {
override fun log(msg: String) {
println("Log: $msg")
}
}
@taq
taq / gui.vim
Created July 24, 2025 23:13
Configurações de caracteres para o Vim
" mostra caracteres que ficam escondidos:
" tab: dois caracteres, um para a tab e outro para ocupar o espaço da tab
" trail: caracter para espaços extras (sobrando no final de linha)
" extends: mostra quando wrap está desligado e a linha excede o limite
" precedes: mostra quando wrap está desligado e tem texto antes
set listchars=tab:▸\ ,trail:·,extends:>,precedes:<
" mostra os caracteres definidos acima
set list
@taq
taq / init.vim
Last active August 6, 2025 22:13
" utilizando fold method como fold-marker, onde os comentários podem indicar folds
" vim:fdm=marker
" configurações básicas {{{
" não precisamos ser totalmente compatíveis com o Vi!
set nocompatible
" habilita syntax highlight
syntax on
" }}}
@taq
taq / gist:5189b45ea27f1c7b0a4f9707c95a78f2
Created July 20, 2025 14:58
Repositórios para instalar o Neovim
# Repositórios padrão
sudo apt install neovim
sudo snap install nvim –classic
# PPA
sudo add-apt-repository ppa:neovim-ppa/stable -y # stable
sudo add-apt-repository ppa:neovim-ppa/unstable -y # unstable
sudo apt update
sudo apt install neovim
@taq
taq / ubuntu-report.json
Created February 7, 2025 10:45
Ubuntu report
{
"Version": "24.10",
"OEM": {
"Vendor": "Dell Inc.",
"Product": "Latitude 5440",
"Family": "Latitude"
},
"BIOS": {
"Vendor": "Dell Inc.",
"Version": "1.20.2"
@taq
taq / 0001-Construtor.patch
Created December 21, 2023 19:16
Pull request patch file example
From f0af0ed80173a0a3ff0ed1316bdb09ba64b518f0 Mon Sep 17 00:00:00 2001
From: Eustaquio Rangel <taq@eustaquiorangel.com>
Date: Thu, 21 Dec 2023 16:12:23 -0300
Subject: [PATCH] Construtor
---
test.rb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/test.rb b/test.rb
@taq
taq / test.rb
Created December 21, 2023 19:08
Pull request example with constructor
class Test
def initialize
puts 'Inicializando um teste ...'
end
end