Skip to content

Instantly share code, notes, and snippets.

View ecesar88's full-sized avatar
💭
Kernel panic - not syncing

Erick Cesar ecesar88

💭
Kernel panic - not syncing
View GitHub Profile
@ecesar88
ecesar88 / llm-wiki.md
Created April 9, 2026 12:01 — 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.

export const logFetchingSingleRecord = (id: string, obj?: Record<string, unknown>) => {
logger({
level: LOG_TYPE.INFO,
message: `Fetching client with id '${id}'`,
...(obj ? ({
object: colorizeAsJSON(obj),
}) : ({}))
});
}
" VimPlug START
" Specify a directory for plugins
" - For Neovim: stdpath('data') . '/plugged'
" - Avoid using standard Vim directory names like 'plugin'
" Autoinstall vim-plug if it isn't installed already
if empty(glob('~/.config/nvim/autoload/plug.vim'))
silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall
enum EXCHANGE_RATE_REGIMES {
FLOATING_EXCHANGE = "CÂMBIO FLUTUANTE",
}
class Person {
constructor(age: number, name: string) {
this.age = age;
this.name = name;
}
@ecesar88
ecesar88 / conventional-commits.md
Created June 28, 2024 13:55 — forked from Zekfad/conventional-commits.md
Conventional Commits Cheatsheet

Quick examples

  • feat: new feature
  • fix(scope): bug in scope
  • feat!: breaking change / feat(scope)!: rework API
  • chore(deps): update dependencies

Commit types

  • build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
  • ci: Changes to CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
  • chore: Changes which doesn't change source code or tests e.g. changes to the build process, auxiliary tools, libraries
import { AxiosError } from 'axios';
import { useCallback, useEffect, useRef, useState } from 'react';
interface useApiOptions<T = object, Args extends any[] = any[]> {
queryFn: (...args: Args) => Promise<T>;
onComplete?: (data: NonNullable<T>) => void;
immediate?: boolean;
}
type ErrorType = {
@ecesar88
ecesar88 / useForm.tsx
Last active June 5, 2024 19:06
useForm.tsx
import getValidations from "./validations";
import useForm from "src/hooks/useForm";
const {
handleSubmit,
registerKey,
clearErrors,
clearForm,
validations: { validateSingleSchema, schema: validationSchema },
formState: { errors, payload, setPayload },
// zSucrilhos' CS:GO config
// Updated 14/12/2022
// Launch options
// -novid -nojoy -nod3d9ex -no3d9ex1 -freq 60
// To test: '+snd_use_hrtf 0'
cl_disablefreezecam 1
cl_showloadout 1
cl_autowepswitch 0
@ecesar88
ecesar88 / 0-contribua-.md
Created September 21, 2021 20:17 — forked from vinicius73/0-contribua-.md
Guia de referencias sobre estudo de JavaScript

Contribua

Se você quiser adicionar mais algum tópico deixe seu comentário, o objetico é facilitar para os iniciantes ou aqueles que buscam dominar JavaScript, quais tópicos são importantes para dominar JavaScript.

São tópicos para quem sabe o minimo de JavaScript (declarar variáveis), a ordem em que eles aparecem são por importância para o dominio como um todo. Mesmo que você já tenha experiência com JS, recomendo que leia os links de cada tópico para fortalecer suas bases teóricas e ter um comportamento mais profundo da linguagem.

Lista originalmente criada e compilada por Vinicius Reis

@ecesar88
ecesar88 / tabc.sh
Created September 20, 2021 19:45 — forked from jpentland/tabc.sh
Add or remove windows from suckless' tabbed
#!/bin/sh
# Usage:
# tabc.sh <tabbed-id> <command>
# Commands:
# add <window-id> - Add window to tabbed
# remove <window-id> - Remove window from tabbed
# list - List all clients of tabbed
#