Skip to content

Instantly share code, notes, and snippets.

View mitchellaha's full-sized avatar
🔥

Mitch V Aureli mitchellaha

🔥
  • Logic 3ii
  • Denver, CO
View GitHub Profile
@burkeholland
burkeholland / prd.md
Created April 10, 2025 19:50
TheUrlist PRD

Project Requirements Document: The Urlist Website

The following table outlines the detailed functional requirements of The Urlist website.

Requirement ID Description User Story Expected Behavior/Outcome
FR001 Creating a New URL List As a user, I want to be able to start a new, empty list so I can begin adding URLs. The system should provide a clear way for the user to initiate the creation of a new list, potentially presenting an empty list view or an "add new list" button.
FR002 A
@khattaksd
khattaksd / seed.sql
Created September 22, 2023 00:19
Supabase Seed Users for local development & testing
-- supabase/seed.sql
--
-- create test users
INSERT INTO
auth.users (
instance_id,
id,
aud,
role,
email,
@j4w8n
j4w8n / implement-user-api-keys-with-supabase.md
Last active April 18, 2025 16:45
Implement user API keys with Supabase

Implement user API keys with Supabase

This is pretty much my first crack at this. I'm sure things could be improved or done differently.

Rationale

JWTs are at the heart of Supabase authorization, but sometimes we wanna build an app that also gives users access via API keys; or perhaps only exclusively via API keys. As you may know, using JWTs as API keys makes them difficult to revoke and therefore a security issue.

We also want to ensure this doesn't significantly add to RLS polices, if at all.

Finally, we'd love to have this handled by Supabase and do as little as possible in our framework. This simplifies our code and reduces third-party libraries.

@mansueli
mansueli / testing_rls_supabase.mdx
Last active April 20, 2025 07:58
Testing Row Level Security (RLS) policies @supabase

Testing RLS policies

To test policies on the database itself (i.e., from the SQL Editor or from psql) without switching to your frontend and logging in as different users, you can utilize the following helper SQL procedures (credits):

grant anon, authenticated to postgres;

create or replace procedure auth.login_as_user (user_email text)
    language plpgsql
    as $$
@pesterhazy
pesterhazy / building-sync-systems.md
Last active May 2, 2025 15:05
Building an offline realtime sync engine

So you want to write a sync system for a web app with offline and realtime support? Good luck. You might find the following resources useful.

Overview articles

@FelixZY
FelixZY / supabase_api_auth.sql
Last active April 14, 2025 00:51
How to configure Supabase (https://supabase.com/) to generate and accept API tokens.
-- Token Based API Access for Supabase
--
-- How to configure Supabase (https://supabase.com/) to generate and accept API tokens.
--
-- (c) 2022 Felix Zedén Yverås
-- Provided under the MIT license (https://spdx.org/licenses/MIT.html)
--
-- Disclaimer: This file is formatted using pg_format. I'm not happy with the result but
-- prefer to follow a tool over going by personal taste.
--
@henrik242
henrik242 / airtag-to-gpx-sync.sh
Last active April 19, 2025 20:26
Read AirTag data from the FindMy.app cache and convert to GPX
#!/usr/bin/env bash
#
# Reads AirTag data from the FindMy.app cache and converts it to a daily GPX file
#
# Rsyncs the data to a web accessible folder that can be displayed with e.g.
# https://gist.github.com/henrik242/84ad80dd2170385fe819df1d40224cc4
#
# This should typically be run as a cron job
#
@daefresh
daefresh / advanti_open_data_tools_2021.csv
Last active December 13, 2024 20:17
[Advanti's Top 150+ Open Data Tools on GitHub in 2021.] This is a hand-curated list of tools 🔨 that I refer to when designing data platforms ❤️. Connect with me on LinkedIn if you'd like this! https://www.linkedin.com/in/douglaseisenstein/
Repo Name Stars Last Commit Timestamp GitHub URL Project URL Project Description
airbyte 3829 Tue 31 Aug 2021 12:27:10 GMT https://github.com/airbytehq/airbyte https://airbyte.io Airbyte is an open-source EL(T) platform that helps you replicate your data in your warehouses lakes and databases.
airflow 22946 Tue 31 Aug 2021 13:25:22 GMT https://github.com/apache/airflow https://airflow.apache.org/ Apache Airflow - A platform to programmatically author schedule and monitor workflows
amazoncaptcha 140 Sat 17 Jul 2021 02:06:48 GMT https://github.com/a-maliarov/amazoncaptcha Pure Python lightweight Pillow-based solver for Amazon's text captcha.
amundsen 2572 Fri 27 Aug 2021 04:50:38 GMT https://github.com/amundsen-io/amundsen https://www.amundsen.io/amundsen/ Amundsen is a metadata driven application for improving the productivity of data analysts data scientists and engineers when interacting with data.
arangodb 11554 Tue 31 Aug 2021 12:03:58 GMT https://github.com/arangodb/arangodb https://www.arangodb.com 🥑 Ar
@jimmybish
jimmybish / org_commits.ps1
Created January 15, 2021 00:39
Get organization commits since date
# Query a GitHub organization for all commits in all repositories. Use a personal access token with admin:org scope enabled.
# This script uses GitHub CLI (cli.github.com) since it handles pagination nicely.
# Organization to query
$org = ""
# Date of earliest commit in YYYY-MM-DDTHH:MM:SSZ format
$date = "2020-01-01T00:00:00Z"