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 | 
| regex: | |
| \<g transform=\"matrix\((.*)\,\-(.*)\,(.*)\,(.*)\,(.*).*\n\s+\>(.*\n\s.*\/\>)<\/g\n\s*\> | |
| --------------------------- | |
| what is recursive source? | |
| #!/usr/bin/env python | |
| import os | |
| import fnmatch | 
| [javac] ---------- | |
| [javac] 1. WARNING in /home/ramin/Desktop/project/oscm/oscm-internal-interfaces/javasrc/org/oscm/internal/marketplace/POOrganization.java (at line 12) | |
| [javac] public class POOrganization extends BasePO { | |
| [javac] ^^^^^^^^^^^^^^ | |
| [javac] The serializable class POOrganization does not declare a static final serialVersionUID field of type long | |
| [javac] ---------- | |
| [javac] ---------- | |
| [javac] 2. WARNING in /home/ramin/Desktop/project/oscm/oscm-internal-interfaces/javasrc/org/oscm/internal/tenant/POTenant.java (at line 14) | |
| [javac] public class POTenant extends BasePO { | |
| [javac] ^^^^^^^^ | 
| [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