Skip to content

Instantly share code, notes, and snippets.

@jordiup
jordiup / use-multiple-gh-accounts-in-desktop.md
Last active June 22, 2025 19:25 — forked from TheGardenMan/use-multiple-gh-accounts-in-desktop.md
How to use multiple GitHub accounts in GitHub Desktop

How to use multiple GitHub accounts in GitHub Desktop

Background

Let's say you have two users and repos likejordiup/repo1 and not_jordiup/repo2.

You want to push and pull from them using different accounts.

Solution

@juliusmarminge
juliusmarminge / enum-generator.ts
Last active September 17, 2025 16:37
prisma enum generator
import { generatorHandler } from "@prisma/generator-helper";
import fs from "node:fs/promises";
import path from "node:path";
const header = `// This file was generated by a custom prisma generator, do not edit manually.\n`;
generatorHandler({
onManifest() {
return {
defaultOutput: "./enums/index.ts",