Skip to content

Instantly share code, notes, and snippets.

View airtonrivero's full-sized avatar
🌃
Coding

Airton Rivero airtonrivero

🌃
Coding
View GitHub Profile
@airtonrivero
airtonrivero / docker-on-the-vagrant.md
Last active August 7, 2024 14:33
Configuração do Docker no Ubuntu - Vagrant
@airtonrivero
airtonrivero / Dockerfile
Created March 22, 2023 16:51 — forked from siklodi-mariusz/Dockerfile
Dockerfile example for Ruby on Rails running on Alpine Linux
FROM ruby:2.4-alpine3.7
# Install dependencies:
# - build-base: To ensure certain gems can be compiled
# - nodejs: Compile assets
# - postgresql-dev postgresql-client: Communicate with postgres through the postgres gem
# - libxslt-dev libxml2-dev: Nokogiri native dependencies
# - imagemagick: for image processing
RUN apk --update add build-base nodejs tzdata postgresql-dev postgresql-client libxslt-dev libxml2-dev imagemagick
@airtonrivero
airtonrivero / install-php5.6-ubuntu-focal.sh
Created September 27, 2021 20:41
Install php5.6 Full in Ubuntu Focal
#!/bin/bash
sudo apt install software-properties-common
LC_ALL=C.UTF-8 sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt-get install php5.6-dev php5.6-gd php5.6-xml \
php5.6-mbstring php5.6-curl php5.6-bz2 \
@airtonrivero
airtonrivero / install-and-config-jdk1.8.0_281-ubuntu
Last active July 7, 2021 15:13
Install and Config JDK 1.8.0_281
#!/bin/bash
# Downloading jdk-8u281-linux-x64.tar in site Oracle
# Link to downloada: https://www.oracle.com/br/java/technologies/javase/javase-jdk8-downloads.html
# Extract to /opt/oracle/java
tar -xvfz ./ /opt/oracle/java
# set variables
export JAVA_HOME="/opt/oracle/java/jdk1.8.0_281"
#!/bin/bash
sudo apt update
sudo apt-get install software-properties-common
sudo apt-get install build-essential
LC_ALL=C.UTF-8 sudo add-apt-repository ppa:ondrej/php
sudo apt-get install php7.4 \
libapache2-mod-php7.4 \
@airtonrivero
airtonrivero / java-jdk-oracle-client.txt
Created May 21, 2021 17:50
Instalar JDK 8_291 no Linux
sudo mkdir /usr/lib/jvm
#
cd /usr/lib/jvm
# baixar o jdk8 no site da oracle
sudo tar -xvzf jdk-8u231-linux-x64.tar.gz
rm -rf jdk-8u231-linux-x64.tar.gz
# var environments
export J2SDKDIR="/usr/lib/jvm/jdk1.8.0_231"
@airtonrivero
airtonrivero / Config Client Oracle 19 in Rails
Created April 3, 2021 17:55
Config Client Oracle 19 in Rails
# Criando o projeto no Rails
rails new projeto -d oracle
# Adiciona no Gemfile
gem 'activerecord-oracle_enhanced-adapter'
gem 'ruby-oci8'
# Instalando as gems
bundle install
@airtonrivero
airtonrivero / script-install-client-oracle-19.sh
Last active July 7, 2021 16:20
Script install Client Oracle 19
#!/bin/bash
#---------------------------------------------------------------------------------------
# Script to install Rails Oracle Client 19 Linux
#
# Author: Airton Bruno B Rivero
# Version: 1.0.1 - 03/04/2021
#---------------------------------------------------------------------------------------
# Version 19.6.0.0.0
# Instalar a biblioteca
@airtonrivero
airtonrivero / script-install-rbenv-nodejs-yarn.sh
Last active April 3, 2021 17:49
Script install rbenv ubuntu 18.04
#!/bin/bash
#---------------------------------------------------------------------------------------
# Script to install rbenv, Ruby, nodejs and yarn
#
# Author: Airton Bruno B Rivero
# Version: 1.0.1 - 03/04/2021
#---------------------------------------------------------------------------------------
# Set variables
echo "Informe a versão do ruby para instalação: "
@airtonrivero
airtonrivero / rbenv-ruby-rails-install.sh
Created March 31, 2021 13:56 — forked from alexishida/rbenv-ruby-rails-install.sh
Script to install rbenv, Ruby, nodejs and yarn
#!/bin/bash
#---------------------------------------------------------------------------------------
# Script to install rbenv, Ruby, nodejs and yarn
# Source: https://gist.github.com/alexishida/655fb139c759393ae5fe47dacd163f99
#
# Author: Alex Ishida <alexishida@gmail.com>
# Version: 1.3.0 - 27/01/2021
#---------------------------------------------------------------------------------------
#
# HOW TO INSTALL A SCRIPT