-
-
Notifications
You must be signed in to change notification settings - Fork 1
Notes
Just a place to keep some notes.
https://gist.github.com/bcomnes/608a93e3d90f6f57151765e1d3f1e876 https://gist.github.com/bcomnes/36cfdaf191b4733f2ed3bd90394c28bb
https://medium.com/@alexishevia/storing-passwords-securely-with-postgresql-and-pgcrypto-87151a318998
CREATE EXTENSION pgcrypto;
CREATE TABLE users (
id SERIAL PRIMARY KEY,
email TEXT NOT NULL UNIQUE,
password TEXT NOT NULL
);
INSERT INTO users (email, password) VALUES (
'[email protected]',
crypt('johnspassword', gen_salt('bf'))
);
SELECT id
FROM users
WHERE email = '[email protected]'
AND password = crypt('johnspassword', password);
id
----
1
(1 row)
SELECT id
FROM users
WHERE email = '[email protected]'
AND password = crypt('wrongpassword', password);
id
----
(0 rows)
- https://www.meetspaceapp.com/2016/04/12/passwords-postgresql-pgcrypto.html
- https://www.postgresql.org/docs/current/citext.html
- https://www.depesz.com/2010/03/02/charx-vs-varcharx-vs-varchar-vs-text/
- https://stackoverflow.com/questions/4848964/difference-between-text-and-varchar-character-varying
- https://dba.stackexchange.com/questions/68266/what-is-the-best-way-to-store-an-email-address-in-postgresql
- https://wiki.postgresql.org/wiki/Don%27t_Do_This#Don.27t_use_serial
- https://github.com/panva/node-openid-client
- https://www.starkandwayne.com/blog/uuid-primary-keys-in-postgresql/
- https://www.postgresql.org
- https://postgresapp.com
- https://eggerapps.at/postico/
- https://www.postgresqltutorial.com/postgresql-uuid/
- https://www.postgresql.org/docs/9.4/uuid-ossp.html
- https://medium.com/@alexishevia/storing-passwords-securely-with-postgresql-and-pgcrypto-87151a318998
- https://github.com/porsager/postgres
- MySQL - How to insert into table that has many-to-many relationship - Stack Overflow
- PostgreSql Many-to-Many with Non-relational SQL - Brendan Graetz
- query - Multi-row insert in many to many relationship in PostgreSQL - Database Administrators Stack Exchange
- Learn SQL
for example, if you want to insert or update column_to_update and return the whole row afterward you can do something like INSERT ... ON CONFLICT unique_key_column DO UPDATE column_to_update = EXCLUDED.column_to_update RETURNING *
- https://www.prisma.io/dataguide/postgresql/inserting-and-modifying-data/insert-on-conflict#using-the-do-update-action
- https://www.postgresql.org/docs/current/sql-insert.html#SQL-ON-CONFLICT
See also https://www.postgresql.org/docs/15/sql-merge.html in PostgreSQL 15
- https://github.com/jsumners/fastify-server-session
- https://github.com/fastify/fastify-flash
- https://github.com/mgcrea/fastify-session-redis-store
- https://github.com/mgcrea/fastify-session-sodium-crypto
- https://github.com/mgcrea/fastify-session
- https://github.com/Phara0h/fastify-good-sessions
- https://github.com/fastify/fastify-secure-session
- https://github.com/jsumners/fastify-server-session
- https://github.com/SerayaEryn/fastify-session
- https://github.com/fastify/middie
- https://github.com/fastify/fastify-express
- https://www.npmjs.com/package/express-session
- https://www.npmjs.com/package/connect-redis
https://www.youtube.com/watch?v=HiawfYnbX3Y
- https://jlongster.com/future-sql-web
- https://github.com/SocketDev/wormhole-crypto
- https://github.com/WebReflection/sqlite-worker
https://twitter.com/steve8708/status/1515413842657832964?s=12&t=UKrTFUOVUSTjQy8HOeiLlA
- DrKain/tidy-url: A Node Package & Userscript that removes tracking or garbage parameters from URLs making them shorter, cleaner and a lot nicer to read.
- inframanufaktur/clean-urls: Utility to remove tracking parameters from a URL
- I Knew How To Validate An Email Address Until I Read The RFC | You’ve Been Haacked
- What's in a hostname?
- Your E-Mail Validation Logic is Wrong
- check-if-email-exists
- ergo example This app sends DKIM verified email without an external MTU. We should do that to if I can.
I remember I had to fight it, I think it has to be max 400x400px, and upload it via the mobile web interface
- https://github.com/showdownjs/showdown
- https://github.com/micromark/micromark
- https://github.com/remarkjs/remark (lower level)
- https://github.com/HYPERHYPER/heroku-buildpack-ffmpeg
- https://elements.heroku.com/search/buildpacks?q=yt-dlp
- https://github.com/getlantern/heroku-buildpack-yt-dlp
- https://github.com/Vincentvibe3/heroku-yt-dlp-buildpack/blob/main/bin/compile
- https://github.com/OzReinherz/heroku-yt-dlp-buildpack
- https://github.com/muhammedfurkan/heroku-buildpack-ytdlp