Skip to content

Instantly share code, notes, and snippets.

View Cyberistic's full-sized avatar

Cyberistic Cyberistic

View GitHub Profile
@Cyberistic
Cyberistic / prisma-studio-d1.md
Created January 29, 2026 19:09
Embedded Prisma Studio with Cloudflare D1 - workaround for sqlite_master blocking

Embedded Prisma Studio with Cloudflare D1

This guide shows how to embed Prisma Studio in your application with Cloudflare D1 database support.

The Problem

Cloudflare D1's Worker binding blocks introspection queries (sqlite_master, pragma_table_list, pragma_table_xinfo) that Prisma Studio needs to discover your schema. This results in errors like:

Error: not authorized
@Cyberistic
Cyberistic / README.md
Created December 30, 2025 06:39
pgbackweb-coolify

PGBackWeb for Coolify

Deploy PGBackWeb on Coolify and backup multiple PostgreSQL databases to S3-compatible storage buckets. Best for when db is defined in a monorepo docker-compose and coolify cannot auto-detect it.

Quick Start

  1. In Coolify, create a new ServiceDocker Compose
  2. Paste the docker-compose.yml content
  3. Deploy - Coolify handles the rest
  4. Under services, find pgbackweb and assign domain, make sure to add port 8085 (eg. pgbackweb.yourdomain.com:8085)
@Cyberistic
Cyberistic / index.js
Created August 19, 2025 05:30
Expo Notifications CloudFlare Worker Relay
/**
* Cloudflare Worker to relay push notifications to Expo
* Acts as a proxy between our server and https://exp.host/--/api/v2/push/send
*/
// Make sure to generate an API_KEY and store it in your worker secrets
const EXPO_PUSH_URL = "https://exp.host/--/api/v2/push/send";
const EXPO_PUSH_TOKEN_URL = "https://exp.host/--/api/v2/push/getExpoPushToken";