This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'securerandom' | |
require 'json' | |
require 'time' | |
# Gera o arquivo de rotas a partir do Rails | |
routes_json = `rails routes > routes.txt` | |
routes = [] | |
crud_methods = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'] | |
File.open("routes.txt").each do |line| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ubuntu configuration | |
# Atualizar systema e instalar dependências | |
sudo apt update && sudo apt upgrade -y | |
sudo ubuntu-drivers autoinstall | |
sudo apt install build-essential git dkms make perl vlc gcc curl ubuntu-restricted-extras -y | |
sudo apt install automake autoconf libreadline-dev libncurses-dev libssl-dev libyaml-dev libxslt-dev libffi-dev libtool unixodbc-dev unzip curl zlib1g-dev sqlite3 libsqlite3-dev | |
sudo apt-get install libcurl4-openssl-dev libxml2-dev | |
sudo apt install preload |