Skip to content

Instantly share code, notes, and snippets.

View JonDotsoy's full-sized avatar

Jonathan Delgado JonDotsoy

View GitHub Profile
@JonDotsoy
JonDotsoy / README.md
Last active July 22, 2026 22:11
wt - utilidad para gestionar git worktrees

wt

Utilidad de shell para gestionar git worktrees: listarlos, abrirlos en VS Code por hash/branch, crear uno a partir de un PR de GitHub, o crear una branch y worktree nuevos.

Instalación

Copia wt a un directorio en tu PATH (por ejemplo ~/.bin o /usr/local/bin) y dale permisos de ejecución:

@JonDotsoy
JonDotsoy / LINKING_FOR_GENERATIVE_AI.md
Last active February 11, 2026 15:32
This guide documents the standard URL schemes required to create links that open AI tools with a pre-filled prompt.

Deep Linking for Generative AI

This guide documents the standard URL schemes required to create links that open AI tools with a pre-filled prompt.

1. Core Concept: URL Encoding

Browsers cannot interpret spaces or special characters directly in a URL. To pass a prompt successfully, the text must be URL Encoded.

Key Substitutions:

@JonDotsoy
JonDotsoy / linus-review.prompt.md
Last active August 12, 2025 14:08
An adaptation of linus-review.yaml for Copilot on VSCode by @afshawnlotfi (ref: https://gist.github.com/afshawnlotfi/044ed6649bf905d0bd33c79f7d15f254)
mode ask
description Brutally honest technical code reviews

Review code with Linus Torvalds' legendary intensity and technical standards. Key behaviors:

Technical Standards:

  • Binary compatibility is sacred - breaking existing binaries is "just about the worst offense any kernel developer can do"
  • Performance matters - don't accept regressions without damn good reasons
@JonDotsoy
JonDotsoy / release.yaml
Last active June 7, 2024 14:43
This GitHub Actions workflow automates the release process. When changes are pushed to the "develop" branch, it uses Release Please to generate release notes and create a GitHub release. If a release is created, it then sets up the Node.js environment and publishes the package to npm.
on:
push:
branches:
- "develop"
name: Release
permissions:
contents: write
pull-requests: write
@JonDotsoy
JonDotsoy / DECORATE.md
Last active May 22, 2024 03:07
A Javascript utils to decorate functions

Decorate

Example

const increase = decorate(
  (n: number) => n,
  increaseBy1,
  increaseBy2,
 increaseBy3,
import { z } from "zod";
import * as fs from "fs/promise";
export class LifeConfig<T extends z.ZodObject<any>> {
bootstrapProcess: Promise<void>;
watchingProcess: null | Promise<void> = null;
store: null | z.infer<T> = null;
ready = Promise.withResolvers<null>();
subs = new Set<(state: z.infer<T>) => void>();
@JonDotsoy
JonDotsoy / unindent.spec.ts
Last active April 5, 2024 14:24
unindent to typescript
expect(
unindent`
Ok
`,
).toEqual("Ok\n");
expect(
unindent`
foo
biz
@JonDotsoy
JonDotsoy / style-text.ts
Last active April 1, 2024 14:59
styleText for typescript.
const colors: Record<string, [number, number]> = {
reset: [0, 0],
bold: [1, 22],
dim: [2, 22],
italic: [3, 23],
underline: [4, 24],
blink: [5, 25],
inverse: [7, 27],
hidden: [8, 28],
strikethrough: [9, 29],
@JonDotsoy
JonDotsoy / article.md
Last active September 26, 2023 14:30
How to write a Service Worker with Astro.build

How to write a service worker with Astro.build

Astro.build is a web framework for building websites, and it also enables you to create Progressive Web Apps (PWAs). One of Astro's powerful features is its ability to import and compile scripts at runtime.

Let's take a look at the following sample:

<script>
  import "../scripts/script.js"
@JonDotsoy
JonDotsoy / asconfig.json
Last active March 27, 2023 20:06
Full sample make assemblyscript with JSON transformer
{
"targets": {
"debug": {
"outFile": "build/debug.wasm",
"textFile": "build/debug.wat",
"sourceMap": true,
"debug": true
},
"release": {
"outFile": "build/release.wasm",