Skip to content

Instantly share code, notes, and snippets.

View lipex360x's full-sized avatar
:octocat:

Felipe Bambirra lipex360x

:octocat:
View GitHub Profile
@lipex360x
lipex360x / BinaryTree.java
Last active October 28, 2026 17:24
Java BinaryTree
package tree;
import java.util.ArrayList;
import java.util.List;
public class BinaryTree<T> {
private Node<T> root; // o tipo do meu atributo eh Node
public Node makeTree(String value) {
this.root = new Node(value);
@lipex360x
lipex360x / 1.Queue.java
Created October 7, 2026 16:18
Java CircularQueue
package dataStructure;
import entity.Animal;
public class Queue {
public int front;
public int rear;
private int capacity;
private Animal[] arr;
@lipex360x
lipex360x / scanner.ts
Last active September 11, 2026 08:06
Node Console Scanner
import { createInterface, type Interface } from "node:readline";
export class ScannerEofError extends Error {
override readonly name = "ScannerEofError";
}
export class ScannerInterruptError extends Error {
override readonly name = "ScannerInterruptError";
}
@lipex360x
lipex360x / aliases
Last active September 6, 2026 14:43
macOS fresh install: bootstrap script, zsh config, aliases and VSCode settings
# --- unix ------------------------------------------------------------------
alias ll='ls -laF'
alias lf='ls -laF'
alias idea='open -a "IntelliJ IDEA CE"'
alias killport='f(){ kill -9 $(lsof -ti :$1 | head -n 1); }; f'
alias killapp='f(){sudo kill -9 $(pgrep -f "$1" | head -n 1); }; f'
# --- shell config ----------------------------------------------------------
alias zshc='code ~/.zshrc'
alias zshl='code ~/.zshrc.local'
@lipex360x
lipex360x / Vanilla HTML + Vite Scaffolding.md
Last active August 27, 2026 19:03
Vanilla HTML + Vite scaffolding: Biome, Prettier and EditorConfig set up for format-on-save

Vanilla HTML + Vite Scaffolding

Starter setup for a Vite project on the vanilla-ts template, with format-on-save working from the first commit and every dependency pinned to an exact version.

Biome lints and formats. Prettier handles the HTML embedded in src/main.ts, which Biome cannot format. EditorConfig covers the files neither of them touches. bunfig.toml stops bun add from writing version ranges.

Read readme.md below for the step-by-step guide. Every other file here is a config file

@lipex360x
lipex360x / spotlight-toggle.sh
Last active June 16, 2026 14:58
macOS: toggle Spotlight indexing on/off per-volume — auto-detects its own volume (no hardcoded path). Great for external SSDs holding media/VMs where indexing just wastes I/O.
#!/usr/bin/env bash
set -euo pipefail
script_path="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/$(basename "${BASH_SOURCE[0]}")"
if [ "$(id -u)" -ne 0 ]; then
exec sudo "$script_path"
fi
target_volume="$(df "$(dirname "$script_path")" | awk 'END {print $NF}')"
@lipex360x
lipex360x / phase-01.md
Last active May 16, 2026 10:50
CRUD Java - CCT Intro Programming

Phase 01 - SQL Foundations (DDL, DML, DQL)

  • DDL: Data Definition Language
  • DML: Data Manipulation Language
  • DQL: Data Query Language

Goal: get comfortable with the three slices of SQL — defining the schema (DDL), changing rows (DML), reading rows (DQL). Everything runs straight in the MySQL client, no Java yet.

Details

[ ] Claude vs chatGPT (openAI vs Anthropic)

[ ] Mobile vs Desktop vs CLI (instalação)

[ ] Haiku vs Sonnet vs Opus (e o novo Mythus) (Codex 5.5 para ChatGPT)

[ ] Tokens

[ ] CLAUDE.md/AGENTS.md e janela de contexto

@lipex360x
lipex360x / gist-behavioral-control.md
Last active April 16, 2026 13:24
Controle de Comportamento de Agentes LLM — Camadas de Enforcement e Limites Arquiteturais

Controle de Comportamento em Agentes LLM

Camadas de enforcement, limites do modelo e como construir observabilidade sem acoplamento frágil.

Os conceitos e exemplos de implementação deste guia foram desenvolvidos e testados no Pi — runtime de agente LLM com suporte a extensões TypeScript, session logging estruturado e injeção de contexto. Referências a before_agent_start, tool_call hook, session-logger e preflight-guard são APIs do Pi.

Complementa o AI Planning Workflow e o Code Quality Checklist.

@lipex360x
lipex360x / gist-planning-workflow.md
Last active April 16, 2026 11:28
AI Project Planning Workflow — LLM + Scripts + SDD + Rollback