Skip to content

Instantly share code, notes, and snippets.

View jorgeadev's full-sized avatar
Focusing

Jorge Gomez jorgeadev

Focusing
View GitHub Profile
@jorgeadev
jorgeadev / 1.RegistrySnapshot.xml
Created January 10, 2026 08:30 — forked from choco-bot/1.RegistrySnapshot.xml
squirreldisk v0.3.4 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-4010432545-2485811193-966787038-1000</user>
<keys>
<key installerType="Msi" displayName="SquirrelDisk" displayVersion="0.3.4">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B9875F98-0F9E-42DB-9A57-279AA8A90CC1}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[C:\Program Files\SquirrelDisk\]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /X{B9875F98-0F9E-42DB-9A57-279AA8A90CC1}]]></UninstallString>
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created January 10, 2026 08:30
squirreldisk v0.3.4 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-4010432545-2485811193-966787038-1000</user>
<keys>
<key installerType="Msi" displayName="SquirrelDisk" displayVersion="0.3.4">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B9875F98-0F9E-42DB-9A57-279AA8A90CC1}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[C:\Program Files\SquirrelDisk\]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /X{B9875F98-0F9E-42DB-9A57-279AA8A90CC1}]]></UninstallString>
@choco-bot
choco-bot / FilesSnapshot.xml
Created January 10, 2026 08:30
bettertrumpet v2.3.1 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\bettertrumpet\bettertrumpet.nupkg" checksum="D0C3EBCF41709D547883B9DEED336FB1" />
<file path="C:\ProgramData\chocolatey\lib\bettertrumpet\bettertrumpet.nuspec" checksum="2697BDFB52837377EBDE0D1F010BE1FF" />
<file path="C:\ProgramData\chocolatey\lib\bettertrumpet\tools\BetterTrumpet.exe" checksum="2C32342A67627EE02183334DE0F264F7" />
<file path="C:\ProgramData\chocolatey\lib\bettertrumpet\tools\BetterTrumpet.exe.ignore" checksum="D41D8CD98F00B204E9800998ECF8427E" />
<file path="C:\ProgramData\chocolatey\lib\bettertrumpet\tools\chocolateyInstall.ps1" checksum="D19A3CAD904EDF666B5F4F10EBB4E9A2" />
</files>
</fileSnapshot>

🌳 Git Branching Strategy & Naming Convention

This document defines the official branching strategy and naming conventions for this repository.

The goal is to keep the workflow clean, predictable, and scalable, while making collaboration and CI/CD easier.


🎯 General Rules

Reflecting Database Changes in the UI - Next.js Best Practices

There are several ways to reflect database changes in the UI in Next.js. Here are the correct approaches:

1. revalidatePath() - Best for Server Actions ✅ (Recommended)

Use this inside your server action to invalidate the cache for a specific path:

"use server";
@jorgeadev
jorgeadev / turborepo.md
Last active January 10, 2026 08:29
Turborepo Config Template

Crear un monorepo con configuraciones compartidas, una aplicación Next.js, Prisma ORM con PostgreSQL y despliegue en Vercel implica el uso de herramientas como Turborepo o pnpm workspaces para gestionar el repositorio y Vercel/Prisma para la base de datos y el despliegue.  Aquí tienes una guía completa paso a paso:

I. Configuración Inicial del Monorepo

Utilizaremos Turborepo y pnpm workspaces como base para el monorepo. 

1. Instalar pnpm (si no lo tienes):

npm install -g pnpm

2. Crear el monorepo con Turborepo:

export const metadata: Metadata = {
title: "Legacy Upscale - Enhance Your Images with AI",
description: "Legacy Upscale uses cutting-edge AI to upscale and enhance your images effortlessly. Try it now for stunning results.",
keywords: ['AI image upscaling', 'image enhancement', 'photo editing', 'Legacy Upscale', 'AI tools'],
authors: [{ name: 'Your Name', url: 'https://yourdomain.com' }],
openGraph: {
title: 'Legacy Upscale - Enhance Your Images with AI',
description: 'Discover Legacy Upscale, the ultimate AI-powered tool for image enhancement and upscaling. Perfect for photographers and designers.',
url: 'https://yourdomain.com',
siteName: 'Legacy Upscale',

Oh no! The frogs are all squeezed onto a single row of lilypads. Spread them out using the flex-wrap property, which accepts the following values:

  • nowrap: Every item is fit to a single line.
  • wrap: Items wrap around to additional lines.
  • wrap-reverse: Items wrap around to additional lines in reverse.

The two properties flex-direction and flex-wrap are used so often together that the shorthand property flex-flow was created to combine them. This shorthand property accepts the value of the two properties separated by a space.

For example, you can use flex-flow: row wrap to set rows and wrap them.

To update all outdated pip packages in Windows run:

python -m pip freeze | % { $_.split('==')[0] } | %{ python -m pip install --upgrade $_ }
@jorgeadev
jorgeadev / git-remove-from-staging.md
Last active June 25, 2025 22:02
This quick reference explains how to remove or unstage files in Git — depending on whether you want to keep the file or not

🧠 Git Cheat Sheet: Removing and Unstaging Files

📌 Unstage a File but Keep It

If you've added a file with git add but haven't committed it yet, and you want to remove it from the next commit without deleting it from your working directory, use:

git restore --staged <file>

git restore --staged config.json