Skip to content

Instantly share code, notes, and snippets.

get ':role/contract/:contract_id', to: 'contracts#get_contract_by_id' #ok
get ':role/contracts', to: 'contracts#gets_all_contracts' #ok
get ':role/company/contracts/:company_id', to: 'contracts#get_contract_by_company_id' #ok
get ':role/endorsement/contracts/:endorsement_id', to: 'contracts#get_all_contracts_by_endorsement_id' #ok
post 'operator/contracts/read_contract_data_from_excel', to: 'contracts#read_contract_data_from_excel' #ok
get ':role/contract/:contract_id/current_hiring_flow', to: 'contract_quotes#get_current_hiring_flow'
post ':role/proposal/:contract_quote_id/create', to: 'proposals#create_proposal'
post ':role/proposal/:contract_quote_id/download', to: 'proposals#download'
@rsporteman
rsporteman / gist:ed7922a713e5d77529da9aa2ad236c5f
Last active August 28, 2022 19:09
Ubuntu 22.04 build for dev
###############################################################################################################
#Update your system
$ sudo apt update
$ sudo apt upgrade
###############################################################################################################
#Install Chrome
$ wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
@rsporteman
rsporteman / update_git_repos.sh
Created January 22, 2021 12:57 — forked from douglas/update_git_repos.sh
Update all git repositories under a base directory
#!/bin/bash
# store the current dir
CUR_DIR=$(pwd)
# Let the person running the script know what's going on.
echo -e "\n\033[1mPulling in latest changes for all repositories...\033[0m\n"
# Find all git repositories and update it to the master latest revision
for i in $(find . -name ".git" | cut -c 3-); do
@rsporteman
rsporteman / Notas DDD.md
Last active November 22, 2019 23:53
Notas DDD

Notas Sobre DDD

DDD não é uma receita para desenvolver software em camadas, mas sim uma abordagem de modelagem de software e praticas com o objetivo de implementas regras complexas. Processos de negócios que tratamos como domínio.

Sem um expert de negocio não é possivél fazer DDD, pode ser por exemplo um Product Owner.

Primeiro Passo: Mapear os contextos de negócio

Segundo Passo: Modelagem de Dominio

@rsporteman
rsporteman / php_exercicios.md
Last active October 22, 2019 23:04
PHP Exercicios

Na resolução das questões considerar PHP 7 ou mais recente.


Determine o output php no terminal dos trechos de código abaixo.

@rsporteman
rsporteman / readme.md
Last active May 10, 2019 13:55
PostgreSQL Ubuntu 18.04 Notas

Acessando o postgre

sudo -i -u postgres

Ou

psql
@rsporteman
rsporteman / git get all branches.md
Last active April 2, 2019 00:17
Git get All Branches

git branch -r | grep -v '->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done

git fetch --all

git pull --all

@rsporteman
rsporteman / Travamento Compilação do Angular.md
Created February 6, 2019 16:09
Travamento Compilação do Angular

Rodar o seguinte comando para resolver

`echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p`
@rsporteman
rsporteman / user_on_centos
Created January 31, 2019 11:53
User On CentOS
cat /etc/passwd
adduser heitor.glockner
passwd heitor.glockner
gpasswd -a heitor.glockner wheel
@rsporteman
rsporteman / install_nvm_and_npm_on_centos
Last active January 31, 2019 11:54
Install Nvm and Npm On Centos
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
export NVM_DIR="$HOME/.nvm"
source ~/.bashrc
nvm install node
npm --version