This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ORG="supabase" | |
| OUTPUT="org_contributors.csv" | |
| TMP_CONTRIBUTORS=$(mktemp) | |
| TMP_MEMBERS=$(mktemp) | |
| # Get all public repositories and aggregate contributors | |
| gh repo list "$ORG" --public --limit 1000 --json name -q '.[].name' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UPDATE pg_database SET datistemplate = false WHERE datname = 'template0'; | |
| UPDATE pg_database SET datistemplate = false WHERE datname = 'template1'; | |
| DROP DATABASE template1; | |
| CREATE DATABASE template1 | |
| TEMPLATE template0 | |
| ENCODING 'UTF8' | |
| LOCALE_PROVIDER builtin | |
| BUILTIN_LOCALE 'C.UTF-8'; | |
| DROP DATABASE template0; | |
| CREATE DATABASE template0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from __future__ import annotations | |
| import argparse | |
| from pathlib import Path | |
| import sys | |
| from typing import Any | |
| import yaml | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM postgres:15-bookworm | |
| # Install build dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| postgresql-server-dev-15 \ | |
| libcurl4-openssl-dev \ | |
| git \ | |
| ca-certificates \ | |
| wget \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| create schema if not exists conmon; | |
| create table if not exists conmon.connection_activity_history ( | |
| snapshot_id bigint generated always as identity primary key, | |
| sampled_at timestamptz not null default now(), | |
| total_backends integer not null, | |
| active_backends integer not null, | |
| idle_backends integer not null, | |
| waiting_backends integer not null, | |
| app_connections jsonb not null, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "jsr:@supabase/functions-js/edge-runtime.d.ts"; | |
| import { createClient } from "jsr:@supabase/supabase-js@2"; | |
| Deno.serve(async (req)=>{ | |
| if (req.method === 'OPTIONS') { | |
| return new Response('ok', { | |
| headers: { | |
| 'Access-Control-Allow-Origin': '*', | |
| 'Access-Control-Allow-Methods': 'POST, OPTIONS', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| # Default values | |
| OUTPUT_FILE="config.toml" | |
| # Function to display usage information | |
| usage() { | |
| echo "Usage: $0 --ref <project_ref> [--token <access_token>] [--output <output_file>]" | |
| echo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| # Default values | |
| OUTPUT_FILE="config.toml" | |
| # Function to display usage information | |
| usage() { | |
| echo "Usage: $0 --ref <project_ref> [--token <access_token>] [--output <output_file>]" | |
| echo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { HTTPException, Hono } from "https://deno.land/x/hono@v4.3.11/mod.ts"; | |
| import type { Context } from 'https://deno.land/x/hono/mod.ts'; | |
| import { faker } from "https://deno.land/x/deno_faker@v1.0.3/mod.ts"; | |
| import * as postgres from 'https://deno.land/x/postgres@v0.17.0/mod.ts' | |
| const app = new Hono(); | |
| const dbURL = Deno.env.get('SUPABASE_DB_URL'); | |
| const pool = new postgres.Pool(dbURL, 3, true) | |
| const schemas = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Auto Label PRs | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| check-external: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| result: ${{ steps.is-member.outputs.result }} | |
| steps: |
NewerOlder