Skip to content

Instantly share code, notes, and snippets.

View leohmoraes's full-sized avatar
🏠
Working/Learning and Hackathon from home

Léo Moraes leohmoraes

🏠
Working/Learning and Hackathon from home
View GitHub Profile
@leohmoraes
leohmoraes / MyLLM.md
Created October 6, 2025 21:17 — forked from cleberjamaral/MyLLM.md
MyLLM: Launches an LLM model and chat interface in my private machine using docker-compose

My Large Language Model

This project provides a local LLM setup using Docker Compose with Ollama and Open WebUI.

Overview

The docker-compose.yaml file defines a complete LLM and chat interface stack with two main services:

Services

@leohmoraes
leohmoraes / conventional_commits.md
Created October 4, 2025 02:05 — forked from jlcarvalho/conventional_commits.md
Guia para mensagens de commits

Guia para mensagens de commits

TLDR;

Nós utilizamos o Conventional Commits para padronizar as mensagens de commit, esse documento descreve o funcionamento desse padrão.

No entanto, para facilitar a nossa vida nós também usamos o Commitizen. Essa ferramenta nos ajuda a seguir a padronização através de uma CLI para realizar commits que pode ser acessado através do comando:

npm run commit
@leohmoraes
leohmoraes / CHATGPT VERSION (GPT-4 | GPT-4.1)
Created July 11, 2025 00:37 — forked from iamnolanhu/CHATGPT VERSION (GPT-4 | GPT-4.1)
REALITY FILTER — A LIGHTWEIGHT TOOL TO REDUCE LLM FICTION WITHOUT PROMISING PERFECTION
✅ REALITY FILTER — CHATGPT
• Never present generated, inferred, speculated, or deduced content as fact.
• If you cannot verify something directly, say:
- “I cannot verify this.”
- “I do not have access to that information.”
- “My knowledge base does not contain that.”
• Label unverified content at the start of a sentence:
- [Inference] [Speculation] [Unverified]
• Ask for clarification if information is missing. Do not guess or fill gaps.
@leohmoraes
leohmoraes / bitbucket_dark.css
Created December 1, 2022 18:29 — forked from peterk87/bitbucket_dark.css
CSS: bitbucket.org dark theme
/*bitbucket.org dark css theme*/
body, aside {
background: #222 !important;
background-color: #222 !important;
color: #bbb !important;
}
h1, h2, h3, h4, h5, span {
background-color: transparent !important;
color: #FFC963 !important;
@leohmoraes
leohmoraes / readme Desafio.md
Last active February 16, 2022 16:05
Desafio Lojacorr

Problema

Existem X casas à venda. Juntas essas casas valem I reais. Você tem um orçamento de B reais para gastar.

Qual o maior número de casas que você pode comprar com o orçamento?

OBS: Quantidade de casas e valor podem ser definidos da maneira que desejar, é possivel também efetuar pesquisas durante o desenvolvimento

Output

@leohmoraes
leohmoraes / nginx.conf
Created February 12, 2022 18:57 — forked from schakko/nginx.conf
Adjusted nginx.conf to make Laravel 8 apps with PHP 8.0 features runnable on Azure App Service
server {
# adjusted nginx.conf to make Laravel 8 apps with PHP 8.0 features runnable on Azure App Service
# @see https://laravel.com/docs/8.x/deployment
listen 8080;
listen [::]:8080;
root /home/site/wwwroot/public;
index index.php;
server_name example.com www.example.com;
location / {
@leohmoraes
leohmoraes / secret-santa.rb
Created December 8, 2021 00:34 — forked from gacha/secret-santa.rb
Secret santa script for christmas
#!/usr/bin/env ruby
require 'timeout'
members = %w(Gatis Jānis Anna Ilze Ieva Kaspars Juris Klāvs Pēteris)
takers = []
givers = []
exceptions = { 'Gatis' => 'Jānis'}
begin
Timeout::timeout(2) do
@leohmoraes
leohmoraes / Dockerfile
Created December 5, 2021 20:03
docker node next jest
# Install dependencies only when needed
FROM node:lts-alpine AS deps
WORKDIR /opt/app
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile
# Rebuild the source code only when needed
# This is where because may be the case that you would try
# to build the app based on some `X_TAG` in my case (Git commit hash)
# Source: https://gist.github.com/d2f36b05bf959e5fc91497ea3f0dceb3
##########################################################
# Should We Replace Docker Desktop With Rancher Desktop? #
# https://youtu.be/bYVfCp9dRTE #
##########################################################
# Referenced videos:
# - Free Docker Desktop Alternative For Mac And Windows: https://youtu.be/LGNEG-t96eE
# - K3d - How to run Kubernetes cluster locally using Rancher k3s: https://youtu.be/mCesuGk-Fks