Skip to content

Instantly share code, notes, and snippets.

View lucasslemos's full-sized avatar

Lucas Lemos lucasslemos

  • SEFIN - Secretaria de Estado de Finanças de Rondônia
  • Porto Velho - Rondônia - Brazil
  • X @Marech4l
View GitHub Profile
@lucasslemos
lucasslemos / rbenv-ruby-rails-install.sh
Created April 10, 2023 14:43 — 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.5.8 - 04/04/2023
#---------------------------------------------------------------------------------------
#
# HOW TO INSTALL A SCRIPT
# Contando arquivos na pasta
ls -l | grep -v ^l | wc -l
# Listando os ips com mais acesso
cat access.log | cut -d ' ' -f 2 | sort | uniq -c | sort -nr | head
# Portas Abertas
sudo lsof -i -P -n | grep LISTEN
# Comprimir pastas
AllCops:
TargetRubyVersion: 2.6
# Include common Ruby source files.
Include:
- '**/*.rb'
- '**/*.gemspec'
- '**/*.jbuilder'
- '**/*.rake'
- '**/Gemfile'
- '**/Rakefile'
@lucasslemos
lucasslemos / Rails Oracle Client 21 Linux
Created September 29, 2021 12:26 — forked from alexishida/Rails Oracle Client 21 Linux
Rails Oracle Client 21 Linux
# Version 21.1.0.0.0 (Requires glibc 2.14)
# Instalar a biblioteca
sudo apt-get install libaio1 unzip
# Criar a pasta
sudo mkdir /opt/oracle
# Mover para /opt/oracle
instantclient-basic-linux.x64-21.1.0.0.0.zip
instantclient-sdk-linux.x64-21.1.0.0.0.zip