Skip to content

Instantly share code, notes, and snippets.

View jramiresbrito's full-sized avatar
🎯
Focusing

João Victor Ramires Guimarães Brito jramiresbrito

🎯
Focusing
View GitHub Profile
@jramiresbrito
jramiresbrito / llm-wiki.md
Created August 18, 2026 00:45 — forked from karpathy/llm-wiki.md
llm-wiki

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@jramiresbrito
jramiresbrito / MusixmatchScraper.py
Created January 18, 2026 02:32 — forked from kitsamho/MusixmatchScraper.py
Scraper class that extracts lyrics for any given artist from Musixmatch.com
class MusixmatchScraper():
"""This class allows you to scrape the lyrics for an artist who has a presence on Musixmatch
An instance of the class needs to be instantiated with an artist URL e.g.
https://www.musixmatch.com/artist/Bob-Dylan
The default number of songs to scrape is 50
@jramiresbrito
jramiresbrito / calendar.tsx
Created March 18, 2024 14:09 — forked from mjbalcueva/calendar.tsx
shadcn ui calendar custom year and month dropdown
"use client"
import * as React from "react"
import { buttonVariants } from "@/components/ui/button"
import { ScrollArea } from "@/components/ui/scroll-area"
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"
import { cn } from "@/lib/utils"
import { ChevronLeft, ChevronRight } from "lucide-react"
import { DayPicker, DropdownProps } from "react-day-picker"
@jramiresbrito
jramiresbrito / rails http status codes
Created March 8, 2024 20:59 — forked from mlanett/rails http status codes
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing
@jramiresbrito
jramiresbrito / postgres_queries_and_commands.sql
Last active November 7, 2025 20:51 — forked from arthurmde/postgres_queries_and_commands.sql
Useful PostgreSQL Queries and Commands
-- check indexes in a table
select *
from pg_indexes
where tablename like 'my_table';
-- Check then statistics were reseted
SELECT stats_reset
FROM pg_stat_database
WHERE datname = current_database();

Install Android SDK CLI Ubuntu 20.04 WSL2 (Work in Progress)

Install Java 8

sudo apt update

sudo apt install openjdk-8-jdk-headless
More recent resolution:
1. cd ~/../../etc (go to etc folder in WSL).
2. echo "[network]" | sudo tee wsl.conf (Create wsl.conf file and add the first line).
3. echo "generateResolvConf = false" | sudo tee -a wsl.conf (Append wsl.conf the next line).
4. wsl --terminate Debian (Terminate WSL in Windows cmd, in case is Ubuntu not Debian).
5. cd ~/../../etc (go to etc folder in WSL).
6. sudo rm -Rf resolv.conf (Delete the resolv.conf file).
7. In windows cmd, ps or terminal with the vpn connected do: Get-NetIPInterface or ipconfig /all for get the dns primary and
secondary.
@jramiresbrito
jramiresbrito / rails_with_rspec_mongoid.md
Created February 3, 2021 15:43 — forked from rujmah/rails_with_rspec_mongoid.md
Quick setup for rails/rspec/mongoid spec_helper

dev bit of Gemfile

group :development, :test do
  gem "rspec-rails"
  gem 'capybara'
  gem 'factory_girl_rails'
  gem 'forgery'
  gem "database_cleaner"
  gem "mongoid-rspec"