Skip to content

Instantly share code, notes, and snippets.

View rj-au's full-sized avatar

Richard J rj-au

View GitHub Profile
@danielrose7
danielrose7 / rls-prisma-extension.test.ts
Last active May 8, 2026 01:41
RLS Extension for Prisma with wrapping jest test
import { Prisma, PrismaClient } from '@prisma/client';
import get from 'lodash.get';
describe('prisma extensions', () => {
it('RLS extension sets app policy helpers', async () => {
// #region setup
const userId = 'user_123';
const organizationId = 'org_456';
const membershipRole = 'admin';
const setRlsSql = Prisma.sql`SELECT set_rls_app_context(${userId}, ${organizationId}, ${membershipRole});`;
@ffflorian
ffflorian / get-commit.yml
Created August 4, 2020 14:17
GH actions: Get commit message in a PR
name: Notify on Pull Request
on:
pull_request:
branches: [dev]
jobs:
send_notification:
runs-on: ubuntu-latest
==========================
How Software Companies Die
==========================
- Orson Scott Card
The environment that nurtures creative programmers kills management and
marketing types - and vice versa.
Programming is the Great Game. It consumes you, body and soul. When
you're caught up in it, nothing else matters. When you emerge into