Skip to content

Instantly share code, notes, and snippets.

View mrnossiom's full-sized avatar

Milo Moisson mrnossiom

View GitHub Profile
@mrnossiom
mrnossiom / newsletter-local-testing.patch
Created September 17, 2023 11:45
git apply --check newsletter-local-testing.patch
diff --git a/src/pages/api/teams/[teamId]/digests/[digestId]/newsletter.tsx b/src/pages/api/teams/[teamId]/digests/[digestId]/newsletter.tsx
index 079a9a4..f6249b3 100644
--- a/src/pages/api/teams/[teamId]/digests/[digestId]/newsletter.tsx
+++ b/src/pages/api/teams/[teamId]/digests/[digestId]/newsletter.tsx
@@ -1,5 +1,5 @@
import { checkDigest, checkTeam } from '@/lib/middleware';
-import { Digest, DigestBlockType } from '@prisma/client';
+import { Digest, DigestBlock, DigestBlockType } from '@prisma/client';
import { AuthApiRequest, errorHandler } from '@/lib/router';
import { NextApiResponse } from 'next';
@mrnossiom
mrnossiom / backup.md
Last active October 8, 2023 16:00
Backing Up my desktop with restic

Backing Up my desktop with both restic and timeshift

Initialize the restic repository :

cd /path/to/your/backup/disk
restic init --repo .