Skip to content

Instantly share code, notes, and snippets.

View flaugabriel's full-sized avatar
👨‍💻
Full Stack Developer

Gabriel Flauzino Mota flaugabriel

👨‍💻
Full Stack Developer
View GitHub Profile
@kauefraga
kauefraga / a-main.py
Last active July 2, 2024 23:47
A oração do programador 🙏
print("""
Código nosso que estás em C
Santificado seja vós, Console
Venha a nós o vosso array[10]
E seja feita, sim, {vossa chave}
Assim no if{} como no else{}
O for (nosso; de cada dia; nos dai hoje++)
Debugai as nossas sentenças
Assim como nós colocamos o ponto e vígula esquecido;
E não nos deixeis errar identação
@alexishida
alexishida / rails-oracle-client-19-linux.txt
Last active December 16, 2022 12:21
Rails Oracle Client 19 Linux
# Version 19.11.0.0.0
# Instalar a biblioteca
sudo apt-get install libaio1
# Criar a pasta
sudo mkdir /opt/oracle
# Mover para /opt/oracle
instantclient-basic-linux.x64-19.11.0.0.0dbru.zip
instantclient-sdk-linux.x64-19.11.0.0.0dbru.zip
@alexishida
alexishida / ruby-security.txt
Last active June 2, 2023 13:54
Ruby Security rails rubocop brakeman
# Commands
gem install bundler-audit
bundle audit check --update
gem install brakeman
brakeman
gem install rubycritic
rubycritic
@oliveira-andre
oliveira-andre / run docker redis
Last active November 12, 2019 00:25
run docker redis
sudo docker run -d \
--name=redis \
--restart=always \
-v redis:/var/lib/redis/data \
-p 6379:6379 \
redis:latest
@alexishida
alexishida / rbenv-ruby-rails-update.sh
Last active July 23, 2024 02:43
Script to update rbenv, Ruby and Ruby on Rails versions
#!/bin/bash
#---------------------------------------------------------------------------------------
# Script to update rbenv, Ruby and Ruby on Rails versions
# Source: https://gist.github.com/alexishida/015b074ae54e1c7101335a2a63518924
#
# Author: Alex Ishida <alexishida@gmail.com>
# Version: 1.6.1 - 22/07/2024
#---------------------------------------------------------------------------------------
#
# If you want install rbenv for the first time
@asssis
asssis / install rails
Last active August 9, 2023 15:40 — forked from alexishida/rbenv-ruby-rails-install.sh
Install rbenv, ruby and rails (executar como root)
#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
@alexishida
alexishida / config-assets-js-css-turbolinks-rails.txt
Last active June 8, 2020 21:27
Config de Assets Javascript Vendor Turbolinks no Rails
@alexishida
alexishida / s3-minio-nginx.conf
Created July 4, 2018 13:40
Nginx Minio S3 config
server {
listen 80;
server_name s3.exemplo.com;
client_max_body_size 20000M;
location / {
proxy_buffering off;
proxy_set_header Host $http_host;
@alexishida
alexishida / rails-production.txt
Last active June 18, 2019 07:35
rails in production
# 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