Skip to content

Instantly share code, notes, and snippets.

View rmros's full-sized avatar
🎯
Focusing

ramin rmros

🎯
Focusing
View GitHub Profile
@rmros
rmros / private_fork.md
Created May 25, 2021 04:00 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

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:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@rmros
rmros / sources.list
Created May 19, 2021 14:52 — forked from ishad0w/sources.list
Ubuntu 20.04 LTS (Focal Fossa) -- Full sources.list
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
@rmros
rmros / index.md
Created November 15, 2020 17:12 — forked from GavinRay97/index.md
Hasura organization permissions

Introduction

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
@rmros
rmros / quote.txt
Created September 29, 2020 06:44 — forked from OnesimusUnbound/quote.txt
Programming Quotes
[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
[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] ^^^^^^^^
regex:
\<g transform=\"matrix\((.*)\,\-(.*)\,(.*)\,(.*)\,(.*).*\n\s+\>(.*\n\s.*\/\>)<\/g\n\s*\>
---------------------------
what is recursive source?
#!/usr/bin/env python
import os
import fnmatch
@rmros
rmros / rails-c9-setup.md
Created January 22, 2018 19:18 — forked from AbuMareBear/rails-c9-setup.md
Rails on Cloud9 Setup

Setting up a rails 5 application on cloud 9

Cloud9

echo "source ~/.profile" >> ~/.bash_profile

echo "export USERNAME=username" >> ~/.profile

echo "export PASSWORD=password" >> ~/.profile

@rmros
rmros / database.yml
Created January 4, 2018 20:10 — forked from yshmarov/database.yml
commands for activating pg (postgresql) for rails on c9.io platform
default: &default
adapter: postgresql
encoding: unicode
pool: 5
username: yaro
password: pass
host: <%= ENV['IP'] %>
development:
<<: *default