Skip to content

Instantly share code, notes, and snippets.

View aacastro91's full-sized avatar

Anderson Castro aacastro91

View GitHub Profile
@jonatasbueno
jonatasbueno / terminal.md
Last active August 9, 2025 04:07
Estilizando terminal no Linux Ubuntu com Kettiy

🛠️ Guia Completo: Kitty + Zsh + Powerlevel10k no Ubuntu 24.04.2 LTS

Este guia mostra como configurar um terminal leve, moderno e bonito com:

  • Kitty como emulador de terminal padrão
  • Zsh
  • fzf como buscador interativo e dinâmico
  • bat como visualizador de arquivos enquanto pesquisa com fzf
  • Powerlevel10k
  • Autosuggestions e Syntax Highlighting
#include <bits/stdc++.h> // Compile: g++ -O3 -march=native -fomit-frame-pointer life.cpp -o life.exe
using namespace std;
#define MAX_SIZE (2558 + 2) // 2558 + walls in each edge
#define DSTEP 1024
#define PARENT_SIZE (DSTEP/4 * (ly+2) * (lx+2))
#define parents(step, y, x) parents[(step)*(ly+2)*(lx+2) + (y)*(lx+2) + (x)]
int dchr[4] = { 'D', 'R', 'U', 'L' }; // Down, Right, Up, Left