echo "source ~/.profile" >> ~/.bash_profile
echo "export USERNAME=username" >> ~/.profile
echo "export PASSWORD=password" >> ~/.profile
| default: &default | |
| adapter: postgresql | |
| encoding: unicode | |
| pool: 5 | |
| username: yaro | |
| password: pass | |
| host: <%= ENV['IP'] %> | |
| development: | |
| <<: *default |
| [T]he difference between a bad programmer and a | |
| good one is whether he considers his code or his | |
| data structures more important. Bad programmers | |
| worry about the code. Good programmers worry about | |
| data structures and their relationships. | |
| -- Linus Torvalds | |
| ~~~ | |
| Clarity and brevity sometimes are at odds. | |
| When they are, I choose clarity. | |
| -- Jacob Kaplan-Moss |
This document outlines how to model a common organization-based permission system in Hasura. Let's assume that you have some table structure like the following:
| Table Name | Columns | Foreign Keys |
|---|---|---|
| User | id, name, email | |
| Organization User | id, user_id, organization_id | user_id -> user.id, organization_id -> organization.id |
| Organization | id, name |
| deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse | |
| deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse | |
| deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse | |
| deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse | |
| deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse | |
| deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse | |
| deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse |
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
git clone --bare git@github.com:usi-systems/easytrace.git