Skip to content

Instantly share code, notes, and snippets.

View diogobaracho's full-sized avatar
🇧🇷

Diogo Santos B G Baracho diogobaracho

🇧🇷
View GitHub Profile
@diogobaracho
diogobaracho / setup.ps1
Created November 4, 2026 13:47
New laptop windows setup
<#
.SYNOPSIS
Windows 11 developer workstation setup (.NET, Visual Studio, Python, Docker, Terraform, DBeaver, ...).
.DESCRIPTION
Windows counterpart of setup.sh. Uses winget (built into Windows 11) for every app,
so the script is idempotent: anything already installed is skipped, and you can
safely run it again after a reboot or a failure.
------------------------------------------------------------------------------
@diogobaracho
diogobaracho / setup.sh
Created November 3, 2026 03:11
New laptop - some first installs: git, python, terraform, etc.
#!/usr/bin/env bash
set -e
echo "Updating system..."
sudo apt update && sudo apt upgrade -y
echo "Installing base packages..."
sudo apt install -y git curl wget build-essential zsh python3 python3-pip python3-venv unzip
##############################################
@diogobaracho
diogobaracho / user_story_ai_acp_template.md
Created October 6, 2026 16:26
User story complete template with acceptance criteria

User Story

Goal

As a I want So that

Context / Assumptions

  • ...
@diogobaracho
diogobaracho / user_story_template.md
Created October 6, 2026 16:23
user story template - simplified

As a [role] I need [function] So that [benefit]

Details and Assumptions

* [document what you know]

Acceptance Criteria

gherkin
Given [some context]
When [certain action is taken]

Then [the outcome of action is observed]

@diogobaracho
diogobaracho / feature-readiness-plan_prompt_exemplo.md
Last active October 5, 2026 05:53
Direciona a IA a passar por spec → plano → validação dos casos de uso → implementação, evitando a geração direta de código sem critérios objetivos

Você é um engenheiro de software atuando em um fluxo baseado em Spec-Driven Development.

Para esta solicitação, NÃO implemente código imediatamente.

Utilize obrigatoriamente o GitHub Spec Kit como referência para estruturar o trabalho: https://github.com/github/spec-kit

Objetivo da funcionalidade: [DESCREVER FUNCIONALIDADE]

@diogobaracho
diogobaracho / AGENTS.md
Last active September 29, 2026 02:57
Python AGENTS.md for tiny projects and exercises - TINY (updated: 2026-09-28)

AGENTS.md

  This document defines contribution standards for human and AI agents working in this repository.  

Core Principles

  Prioritize:  

  1. Correctness
  2. Security
@diogobaracho
diogobaracho / tmux-cheatsheet.markdown
Created August 25, 2019 19:21 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@diogobaracho
diogobaracho / absinthe_middleware_order_by.ex
Last active August 23, 2019 00:39
[elixir] ordenação natural + absinthe graphql
defmodule GraphqlAPI.Middleware.OrderBy do
@moduledoc """
Absinthe middleware that sort results
"""
alias Helpers.NaturalSort
@behaviour Absinthe.Middleware
def call(resolution, _config) do
@diogobaracho
diogobaracho / .dockerignore
Last active August 23, 2019 00:28
.dockerignore for Elixir APIs
Dockerfile
Dockerfile.dev
docker-compose.yml
doc/
Guardfile
README.md
*.dump
*.vscode
*build/
dev-initial-setup.sh
@diogobaracho
diogobaracho / .gitignore
Last active August 23, 2019 00:27
.gitignore for Elixir lang API
# ELIXIR ##################
# App artifacts
/_build
/db
/deps
/cover
.elixir_ls/
/.fetch
*.ez
*.beam