Skip to content

Instantly share code, notes, and snippets.

View jordiup's full-sized avatar
👀
Looking for my next role!

Jordi Hermoso jordiup

👀
Looking for my next role!
View GitHub Profile
@jordiup
jordiup / use-multiple-gh-accounts-in-desktop.md
Last active October 24, 2024 19:56 — 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 October 22, 2024 17:01
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",
@linuz90
linuz90 / Plausible Live Stats.scriptable
Last active November 17, 2024 21:13
iOS widget to display a live visitors count with Plausible analytics and Scriptable.
// Configuration
// You'll be able to set the domain when adding/editing the widget
// Make sure the stats are public on Plausible
const namespace = args.widgetParameter || "plausible.io"
const displayName = namespace.slice(0,namespace.lastIndexOf("."))
const accentColor = new Color("#CCCCCC")
// LineChart by https://kevinkub.de/
// Used as the widget background
class LineChart {