Skip to content

Instantly share code, notes, and snippets.

@vitorfg8
vitorfg8 / AGENTS.md
Last active May 7, 2026 19:04
agents.md for android native / kmp based on cursor,detekt and android docs. generated with claude

AGENTS.md — Android & Kotlin Multiplatform Development Guide

This file instructs AI agents on how to generate, review, and refactor code for Native Android and Kotlin Multiplatform (KMP) projects. All output must comply with these guidelines before being considered complete.

⚠️ Golden rule — always respect the existing project. Use the libraries, architectural patterns, and UI approach already present in the project. Do not introduce alternatives unless explicitly requested by the user.

@vitorfg8
vitorfg8 / config.jsonc
Created July 2, 2024 13:44
My Fastfetch custom configuration. Tela icon theme icon
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": {
"type": "iterm",
"source": "~/.local/share/icons/distributor-logo-fedora.svg",
"padding": {
"top": 3,
"left": 5
}
},
@vitorfg8
vitorfg8 / custom-settings.json
Created June 16, 2024 17:22
CommitMono config to match inter font
{
"weight": 400,
"italic": false,
"alternates": {
"cv01": false,
"cv02": true,
"cv03": false,
"cv04": false,
"cv05": false,
"cv06": false,
@vitorfg8
vitorfg8 / FluentDarkPro.colors
Last active May 23, 2024 16:14
KDE Fluent color scheme modified to follow the same color as Window Decoration
[ColorEffects:Disabled]
Color=56,56,56
ColorAmount=0
ColorEffect=0
ContrastAmount=0.65
ContrastEffect=1
IntensityAmount=0.1
IntensityEffect=2
[ColorEffects:Inactive]
@vitorfg8
vitorfg8 / .bashrc
Last active October 3, 2023 13:21
Make Flutter recognize Chromium Flatpak
export CHROME_EXECUTABLE="$HOME/.local/share/flatpak/app/org.chromium.Chromium/current/active/export/bin/org.chromium.Chromium"
@vitorfg8
vitorfg8 / vtr.theme.sh
Last active June 18, 2023 22:10
my Oh My Bash theme inspired by Font and Candy theme
#! bash oh-my-bash.module
# Example
# (myenv) user@host ~/.../example/test (master ✗) $
SCM_NONE_CHAR=''
SCM_THEME_PROMPT_DIRTY=" ${_omb_prompt_red}✗"
SCM_THEME_PROMPT_CLEAN=" ${_omb_prompt_green}✓"
SCM_THEME_PROMPT_PREFIX="${_omb_prompt_white}("
SCM_THEME_PROMPT_SUFFIX="${_omb_prompt_white}) "
@vitorfg8
vitorfg8 / .zshrc
Created June 8, 2023 13:15
ZSH Spelling Correction
# English
setopt correct
export SPROMPT="Correct %R to %r? [Yes, No, Abort, Edit] "
# Português Brasil
setopt correct
export SPROMPT="Corrigir %R para %r? [Sim, Não, Abortar, Editar] "
@vitorfg8
vitorfg8 / .zshrc
Created June 8, 2023 13:08
Make zsh completion behave like Bash completion
setopt noautomenu
@vitorfg8
vitorfg8 / vtr.zsh-theme
Last active June 8, 2023 15:24
Custom zsh theme
# Nome de usuário, @ e nome da máquina verdes
PROMPT='%{$fg[green]%}%n@%m%{$reset_color%} '
# Diretório atual azul
PROMPT+='%{$fg[blue]%}%~%{$reset_color%} '
# Branch atual em cinza claro
PROMPT+='%{$fg[lightgray]%}$(git_prompt_info)%{$reset_color%}'
# Sinal de $ branco
@vitorfg8
vitorfg8 / best_color.py
Created June 3, 2023 23:44
script that returns the dominant color of an image, among the folder colors of the Tela icon theme
import sys
from PIL import Image
import webcolors
import math
def get_dominant_color(image):
# Redimensiona a imagem para uma largura máxima de 250 pixels
width, height = image.size
aspect_ratio = height / float(width)