Skip to content

Instantly share code, notes, and snippets.

View digitalcortex's full-sized avatar
🎯
Focusing

Nikita Madebeykin digitalcortex

🎯
Focusing
View GitHub Profile
@philipimperato
philipimperato / feathers-pinia-casl.md
Last active February 12, 2024 18:15
Using feather-casl with feathers-pinia, nuxt 3, and feathersjs (Dove)

Using feathers-casl with feathers-pinia and feathers Dove

Resources

  • [How to define CASL rules]
  • [Feathers-CASL Dove release v1.0.1]
  • [Feathers-CASL Feathers-vuex documentation] (most of this comes from here)

Feathers Dove + feathers-casl API

Required packages

casl @casl/ability@5 feathers-casl@pre

@MauricioMoraes
MauricioMoraes / access_postgresql_with_docker.md
Last active August 30, 2024 05:21
Allow Docker Container Access to Host's Postgres Database on linux (ubuntu)

You have to do 2 things in order to allow your container to access your host's postgresql database

  1. Make your postgresql listen to an external ip address
  2. Let this client ip (your docker container) access your postgresql database with a given user

Obs: By "Host" here I mean "the server where docker is running on".

Make your postgresql listen to an external ip address

Find your postgresql.conf (in case you don't know where it is)

$ sudo find / -type f -name postgresql.conf