-
Install alien, OpenJDK 11, and OpenJFX
sudo apt install alien openjdk-11-jdk openjfx
-
Download SQL Developer >= 19.2
https://www.oracle.com/tools/downloads/sqldev-downloads.html- Download the Linux RPM
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
# Instalar a biblioteca | |
sudo apt-get install libaio1 | |
# Criar a pasta | |
sudo mkdir /opt/oracle | |
# Fazer donwload do basic e sdk client | |
https://drive.google.com/drive/folders/1Oa6nbLkSPLlFYLWKvehA79IzOeaYxErq | |
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
<%= javascript_include_tag 'https://unpkg.com/sweetalert/dist/sweetalert.min.js', 'data-turbolinks-track': 'reload' %> | |
//= require jquery | |
//= require jquery_ujs | |
$.rails.allowAction = function(element) { | |
var message = element.attr('data-confirm'); | |
if (!message) { return true; } | |
swal({ |
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
$.rails.allowAction = function(element) { | |
var message = element.attr('data-confirm'); | |
if (!message) { return true; } | |
var opts = { | |
title: "Confirmação", | |
message: message, | |
buttons: { | |
confirm: { | |
label: 'Sim', |
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
# Edit credentials | |
EDITOR=nano rails credentials:edit | |
# Generate Random key | |
rails secret | |
# Use Example on Devise | |
development: |
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
# Bash start.sh para inicialização da aplicação Rails >= 5.2 | |
https://gist.github.com/alexishida/96ab6138caeb63a68e96a0bb1bf58c15 | |
# Gerando o banco | |
RAILS_ENV=production rails db:create | |
RAILS_ENV=production rails db:migrate | |
RAILS_ENV=production rails db:seed | |
# Gerando os assets | |
RAILS_ENV=production rails assets:precompile |
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
#ATUALIZAR RUBY | |
cd /usr/local/rbenv | |
git reset --hard | |
git pull origin master | |
cd ~/.rbenv/plugins/ruby-build | |
git reset --hard | |
git pull origin master | |
# - Listando versoes existentes |